compiler: Don't require constructor names to be globally unique in MSVC.
authorBen Pfaff <blp@ovn.org>
Wed, 10 Feb 2016 23:43:22 +0000 (15:43 -0800)
committerBen Pfaff <blp@ovn.org>
Thu, 11 Feb 2016 02:08:16 +0000 (18:08 -0800)
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
include/openvswitch/compiler.h

index f13f315..60c408b 100644 (file)
 #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) \