[INCLUDE/CRT]
[reactos.git] / reactos / include / crt / crtdefs.h
index b1f23ed..76cc426 100644 (file)
@@ -4,9 +4,7 @@
  * No warranty is given; refer to the file DISCLAIMER within this package.
  */
 #include <_mingw.h>
-#ifndef __cplusplus
 #include <specstrings.h>
-#endif
 
 #ifndef _INC_CRTDEFS
 #define _INC_CRTDEFS
@@ -345,6 +343,14 @@ extern "C" {
 #endif
 #endif
 
+/* For wine code... */
+#if !defined(_MSVCRT_LONG_DEFINED) && defined(__ROS_LONG64__)
+#define _MSVCRT_LONG_DEFINED
+/* we need 32-bit longs even on 64-bit */
+typedef int __msvcrt_long;
+typedef unsigned int __msvcrt_ulong;
+#endif
+
 #ifndef _TIME_T_DEFINED
 #define _TIME_T_DEFINED
 #ifdef _USE_32BIT_TIME_T