From 4b7396908d07a1a3576aad8b7ea2602e8fd072b5 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 10 Feb 2016 15:43:22 -0800 Subject: [PATCH] compiler: Don't require constructor names to be globally unique in MSVC. Signed-off-by: Ben Pfaff Acked-by: Russell Bryant --- include/openvswitch/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openvswitch/compiler.h b/include/openvswitch/compiler.h index f13f315fc..60c408b55 100644 --- a/include/openvswitch/compiler.h +++ b/include/openvswitch/compiler.h @@ -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) \ -- 2.20.1