+respected proper function calling types cdecl/stdcall/fastcall
[captive.git] / src / libcaptive / include / reactos / compat.h
index 3b474b2..7c72caa 100644 (file)
 #undef FASTCALL
 #endif
 
+/* It gets defined to __attribute__((stdcall)) by "base.h" and "ntos/types.h". */
+#ifdef REACTOS_COMPAT
+#define STDCALL
+#else
+#undef STDCALL
+#endif
+
+/* It gets defined to __attribute__((cdecl)) by "base.h" and "ntos/types.h"; should not hurt. */
+#ifdef REACTOS_COMPAT
+#define CDECL
+#else
+#undef CDECL
+#endif
+
 #ifdef REACTOS_COMPAT
 #define wcscpy captive_reactos_wcscpy
 #else