Fix folly/test:singleton_test - Singleton.SharedPtrUsage
[folly.git] / folly / test / SingletonVaultCTest.cpp
index 16877149bda1ccd9bd7435bb4ae9cc73e6a18340..7d48b88ca862b47286e0de07d81532eba434f2c5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 #include <folly/Singleton.h>
 #include <folly/SingletonVault_c.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
-#include <thread>
-
-__thread long instance_counter_instances = 0;
+FOLLY_TLS long instance_counter_instances = 0;
 
 class InstanceCounter {
  public: