diff options
author | Ben Pfaff <blp@ovn.org> | 2016-02-10 15:43:22 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-02-10 18:08:16 -0800 |
commit | 4b7396908d07a1a3576aad8b7ea2602e8fd072b5 (patch) | |
tree | 493fccc4c819bc51c869110d3bd7798471761cef /include/openvswitch/compiler.h | |
parent | 08e50968df0e5111fcdc9013355eb6edf68c2550 (diff) | |
download | openvswitch-4b7396908d07a1a3576aad8b7ea2602e8fd072b5.tar.gz |
compiler: Don't require constructor names to be globally unique in MSVC.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
Diffstat (limited to 'include/openvswitch/compiler.h')
-rw-r--r-- | include/openvswitch/compiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) \ |