commit | cf040c0fef4a049a75a5ec7972f518b9034bdc76 | [log] [tgz] |
---|---|---|
author | Egor Pugin <egor.pugin@gmail.com> | Thu Mar 28 19:06:12 2019 +0300 |
committer | Behdad Esfahbod <behdad@behdad.org> | Thu Mar 28 11:10:42 2019 -0700 |
tree | 2cde71549128e79b8c06e1a79e3428dc5715e1f0 | |
parent | 717181c5943c13a682c719dce10bfc3d9cc47e6b [diff] |
Disable unwanted C++ definitions for MSVC. MSVC does not set __cplusplus to the latest standard and also it does not like redefining some keywords.
diff --git a/src/hb.hh b/src/hb.hh index 5b66ba8..67f09b9 100644 --- a/src/hb.hh +++ b/src/hb.hh
@@ -214,7 +214,7 @@ * Compiler attributes */ -#if __cplusplus < 201103L +#if __cplusplus < 201103L && !defined(_MSC_VER) #ifndef nullptr #define nullptr NULL