Summary: This adds MSVC support to the detection of FOLLY_HAS_RTTI.
Closes #255
Reviewed By: @yfeldblum
Differential Revision:
D2283036
Pulled By: @sgolemon
#endif
// RTTI may not be enabled for this compilation unit.
#endif
// RTTI may not be enabled for this compilation unit.
-#if defined(__GXX_RTTI) || defined(__cpp_rtti)
+#if defined(__GXX_RTTI) || defined(__cpp_rtti) || \
+ (defined(_MSC_VER) && defined(_CPPRTTI))
# define FOLLY_HAS_RTTI 1
#endif
# define FOLLY_HAS_RTTI 1
#endif