Include atomic in SingletonTestStructs.cpp
authorChristopher Dykes <cdykes@fb.com>
Fri, 18 Nov 2016 00:30:12 +0000 (16:30 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Fri, 18 Nov 2016 00:38:38 +0000 (16:38 -0800)
Summary: This was relying on it being transitively included by system headers, which isn't the case under MSVC.

Reviewed By: yfeldblum

Differential Revision: D4199882

fbshipit-source-id: c25dc1e86687e19851923a1a660a91bcf63f0e6d

folly/test/SingletonTestStructs.cpp

index 5cc84fd36f71d915925f4e9b8ae3b4b0cc92437d..64db419b7a6b2e7f1b90e644aec03e5e576f7dca 100644 (file)
@@ -16,6 +16,8 @@
 
 #include <folly/test/SingletonTestStructs.h>
 
+#include <atomic>
+
 namespace {
 // A simple class that tracks how often instances of the class and
 // subclasses are created, and the ordering.  Also tracks a global