STDCALL and CDECL are now defined conditionally to be overridable
authorshort <>
Sat, 2 Nov 2002 02:39:17 +0000 (02:39 +0000)
committershort <>
Sat, 2 Nov 2002 02:39:17 +0000 (02:39 +0000)
include/base.h
include/ntos/types.h

index d57906e..cf59592 100644 (file)
@@ -57,13 +57,21 @@ typedef long LONG;
 #define CONST const
 
 #ifdef i386
+#ifndef STDCALL
 #define STDCALL     __attribute__ ((stdcall))
+#endif
+#ifndef CDECL
 #define CDECL       __attribute((cdecl))
+#endif
 #define CALLBACK    WINAPI
 #define PASCAL      WINAPI
 #else
+#ifndef STDCALL
 #define STDCALL
+#endif
+#ifndef CDECL
 #define CDECL
+#endif
 #define CALLBACK
 #define PASCAL
 #endif
index 1375aea..1395966 100644 (file)
@@ -178,13 +178,21 @@ typedef struct _FILETIME
 #define CONST const
 
 #ifdef i386
+#ifndef STDCALL
 #define STDCALL     __attribute__ ((stdcall))
+#endif
+#ifndef CDECL
 #define CDECL       __attribute((cdecl))
+#endif
 #define CALLBACK    WINAPI
 #define PASCAL      WINAPI
 #else
+#ifndef STDCALL
 #define STDCALL
+#endif
+#ifndef CDECL
 #define CDECL
+#endif
 #define CALLBACK
 #define PASCAL
 #endif