Commit 520e1276 authored by Orvid King's avatar Orvid King Committed by facebook-github-bot-1

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
parent 78230d5f
...@@ -45,7 +45,7 @@ struct FatalHelper { ...@@ -45,7 +45,7 @@ struct FatalHelper {
std::vector<detail::TypeDescriptor> leakedSingletons_; std::vector<detail::TypeDescriptor> leakedSingletons_;
}; };
#ifdef __APPLE__ #if defined(__APPLE__) || defined(_MSC_VER)
// OS X doesn't support constructor priorities. // OS X doesn't support constructor priorities.
FatalHelper fatalHelper; FatalHelper fatalHelper;
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment