Skip to content

Commit

Permalink
compiler: Don't require constructor names to be globally unique in MSVC.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
  • Loading branch information
blp committed Feb 11, 2016
1 parent 08e5096 commit 4b73969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/openvswitch/compiler.h
Expand Up @@ -206,7 +206,7 @@
#pragma section(".CRT$XCU",read)
#define OVS_CONSTRUCTOR(f) \
static void __cdecl f(void); \
__declspec(allocate(".CRT$XCU")) void (__cdecl*f##_)(void) = f; \
__declspec(allocate(".CRT$XCU")) static void (__cdecl*f##_)(void) = f; \
static void __cdecl f(void)
#else
#define OVS_CONSTRUCTOR(f) \
Expand Down

0 comments on commit 4b73969

Please sign in to comment.