Files
haikuports/media-libs/netpbm/patches/netpbm-10.86.42.patchset
2024-07-22 11:32:57 +02:00

40 lines
1.0 KiB
Plaintext

From 3c5f0745e18f350ba0a3dc771bba08217614b11c Mon Sep 17 00:00:00 2001
From: reds <reds@sakamoto.pl>
Date: Sat, 14 Dec 2019 20:30:06 +0100
Subject: fixes ppmtompeg typedefs
diff --git a/converter/ppm/ppmtompeg/headers/general.h b/converter/ppm/ppmtompeg/headers/general.h
index 59c33c7..487c142 100644
--- a/converter/ppm/ppmtompeg/headers/general.h
+++ b/converter/ppm/ppmtompeg/headers/general.h
@@ -117,6 +117,9 @@ typedef int boolean;
match those in AIX system header files. Otherwise, compile fails on
AIX. 2000.09.11.
*/
+#if defined(__HAIKU__)
+#include <SupportDefs.h>
+#else
typedef unsigned char uint8;
typedef signed char int8;
typedef unsigned short uint16;
@@ -142,6 +145,7 @@ typedef signed short int16;
* 1) long's are 32 bits and
* 2) int's are not
*/
+
#ifdef LONG_32
typedef unsigned long uint32;
typedef long int32;
@@ -149,6 +153,7 @@ typedef long int32;
typedef unsigned int uint32;
typedef signed int int32;
#endif
+#endif
/*========*
--
2.45.2