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/w…
==============================================================================
--- 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)