Fix a load of assumptions about default calling convention, a lot more remain.
[reactos.git] / reactos / win32ss / pch.h
index ebedadc..b4bc100 100644 (file)
@@ -43,6 +43,10 @@ typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
 #include <math.h>
 #include <intrin.h>
 
+// Needed because windef.h messes up CDECL for whatever
+#undef CDECL
+#define CDECL __cdecl
+
 /* Avoid type casting, by defining RECT to RECTL */
 #define RECT RECTL
 #define PRECT PRECTL