mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
40 lines
1.0 KiB
Plaintext
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
|
|
|