From 520e12764126d22e1f2ab80347e233322d9129b6 Mon Sep 17 00:00:00 2001 From: Orvid King Date: Wed, 29 Jul 2015 14:51:04 -0700 Subject: [PATCH] Add MSVC support to Singleton's fatalHelper Summary: MSVC doesn't support constructor priorities, so use the same code as OSX. Closes #272 Reviewed By: @yfeldblum Differential Revision: D2283998 Pulled By: @sgolemon --- folly/Singleton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Singleton.cpp b/folly/Singleton.cpp index a9ca67f6..10290971 100644 --- a/folly/Singleton.cpp +++ b/folly/Singleton.cpp @@ -45,7 +45,7 @@ struct FatalHelper { std::vector leakedSingletons_; }; -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(_MSC_VER) // OS X doesn't support constructor priorities. FatalHelper fatalHelper; #else -- 2.34.1