Fix __int{8,16,32,64}
Dimitrie O. Paun
dpaun at rogers.com
Thu Nov 21 19:21:40 CST 2002
ChangeLog
Allow apps to define __int{8,16,32,64} on the command line.
Index: ./include/basetsd.h
===================================================================
RCS file: /var/cvs/wine/include/basetsd.h,v
retrieving revision 1.8
diff -u -r1.8 basetsd.h
--- ./include/basetsd.h 21 Sep 2002 01:21:00 -0000 1.8
+++ ./include/basetsd.h 22 Nov 2002 01:19:21 -0000
@@ -39,12 +39,24 @@
*/
/* Type model indepent typedefs */
-
+/* The __intXX types are native types defined by the MS C compiler.
+ * Apps that make use of them before they get defined here, can
+ * simply add to the command line:
+ * -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long"
+ */
#ifndef _MSC_VER
-#define __int8 char
-#define __int16 short
-#define __int32 int
-#define __int64 long long
+# ifndef __int8
+# define __int8 char
+# endif
+# ifndef __int16
+# define __int16 short
+# endif
+# ifndef __int32
+# define __int32 int
+# endif
+# ifndef __int64
+# define __int64 long long
+# endif
#endif /* !defined(_MSC_VER) */
typedef signed __int8 INT8, *PINT8;
--
Dimi.
More information about the wine-patches
mailing list