Add a dummy DECL_GLOBAL_CONSTRUCTOR for MSVC

svn path=/branches/cmake-bringup/; revision=49849
This commit is contained in:
Timo Kreuzer 2010-11-28 16:37:46 +00:00
parent 5782837e7e
commit 69c7a5d30c

View file

@ -150,7 +150,11 @@ struct statfs;
/* 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)