[ros-diffs] [tkreuzer] 49849: [WINE] Add a dummy DECL_GLOBAL_CONSTRUCTOR for MSVC

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sun Nov 28 16:37:47 UTC 2010


Author: tkreuzer
Date: Sun Nov 28 16:37:46 2010
New Revision: 49849

URL: http://svn.reactos.org/svn/reactos?rev=49849&view=rev
Log:
[WINE]
Add a dummy DECL_GLOBAL_CONSTRUCTOR for MSVC

Modified:
    branches/cmake-bringup/include/reactos/wine/port.h

Modified: branches/cmake-bringup/include/reactos/wine/port.h
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/reactos/wine/port.h?rev=49849&r1=49848&r2=49849&view=diff
==============================================================================
--- branches/cmake-bringup/include/reactos/wine/port.h [iso-8859-1] (original)
+++ branches/cmake-bringup/include/reactos/wine/port.h [iso-8859-1] Sun Nov 28 16:37:46 2010
@@ -150,7 +150,11 @@
 
 /* Constructor functions */
 
-#ifdef __GNUC__
+#ifdef _MSC_VER // ReactOS
+#pragma message("DECL_GLOBAL_CONSTRUCTOR is not properly defined")
+# define DECL_GLOBAL_CONSTRUCTOR(func) \
+    static void func(void)
+#elif defined(__GNUC__)
 # define DECL_GLOBAL_CONSTRUCTOR(func) \
     static void func(void) __attribute__((constructor)); \
     static void func(void)




More information about the Ros-diffs mailing list