Disable unwanted C++ definitions for MSVC.

MSVC does not set __cplusplus to the latest standard and also it does not like redefining some keywords.
This commit is contained in:
Egor Pugin authored and Behdad Esfahbod committed 2019-03-28 11:10:42 -07:00
1 parent 717181c594
commit cf040c0fef
1 file changed
+1 -1
+1 -1
View File
@@ -214,7 +214,7 @@ extern "C" int hb_memalign_impl(void **memptr, size_t alignment, size_t size);
* Compiler attributes
*/
#if __cplusplus < 201103L
#if __cplusplus < 201103L && !defined(_MSC_VER)
#ifndef nullptr
#define nullptr NULL