Fix fibers gdb utils script
[folly.git] / folly / Fingerprint.h
index a4400d5ddcb5eb54ce13724e9a77cd3c9db1c30f..1294a0d285107ef51ff5887b86975493a5d555ca 100644 (file)
@@ -63,6 +63,11 @@ const uint64_t FingerprintTable<BITS>::poly[1 + (BITS - 1) / 64] = {};
 template <int BITS>
 const uint64_t FingerprintTable<BITS>::table[8][256][1 + (BITS - 1) / 64] = {};
 
+#ifndef _MSC_VER
+// MSVC 2015 can't handle these extern specialization declarations,
+// but they aren't needed for things to work right, so we just don't
+// declare them in the header for MSVC.
+
 #define FOLLY_DECLARE_FINGERPRINT_TABLES(BITS)                      \
   template <>                                                       \
   const uint64_t FingerprintTable<BITS>::poly[1 + (BITS - 1) / 64]; \
@@ -74,6 +79,7 @@ FOLLY_DECLARE_FINGERPRINT_TABLES(96);
 FOLLY_DECLARE_FINGERPRINT_TABLES(128);
 
 #undef FOLLY_DECLARE_FINGERPRINT_TABLES
+#endif
 
 } // namespace detail