[PSDK]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 15 Oct 2011 19:54:51 +0000 (19:54 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 15 Oct 2011 19:54:51 +0000 (19:54 +0000)
- don't define _cdecl and __cdecl to nothing on MSVC builds.
- define cdecl and CDECL to nothing
- add #pragma once
- this file is full of hacks

svn path=/trunk/; revision=54149

reactos/include/psdk/windef.h

index d1ca30f..e40834e 100644 (file)
@@ -5,6 +5,7 @@
  */
 #ifndef _WINDEF_
 #define _WINDEF_
+#pragma once
 
 #define _WINDEF_H // wine ...
 
@@ -106,8 +107,6 @@ typedef int INT;
 #define PACKED
 #else
 #define PACKED
-#define _cdecl
-#define __cdecl
 #endif
 
 #ifdef __GNUC__
@@ -141,9 +140,9 @@ typedef int INT;
 #define near
 #define pascal __stdcall
 
-//#define cdecl _cdecl
+#define cdecl
 #ifndef CDECL
-#define CDECL _cdecl
+#define CDECL
 #endif
 
 #if !defined(__x86_64__) //defined(_STDCALL_SUPPORTED)