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 2019-03-28 19:06:12 +03:00 committed by Michiharu Ariza
parent 53d40426e1
commit 13ae138af3
1 changed files with 1 additions and 1 deletions

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