From: Orvid King Date: Wed, 29 Jul 2015 21:51:04 +0000 (-0700) Subject: Add MSVC support to Singleton's fatalHelper X-Git-Tag: v0.53.0~30 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=520e12764126d22e1f2ab80347e233322d9129b6;p=folly.git 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 --- 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