diff options
author | Ben Kaduk <kaduk@mit.edu> | 2013-06-24 18:19:45 -0400 |
---|---|---|
committer | Ben Kaduk <kaduk@mit.edu> | 2013-06-25 17:07:13 -0400 |
commit | 7bca89626e53f258397818a9b0d838a0a3e00f5b (patch) | |
tree | a627fc99abc51fd695482adbdcb3839edc4597d8 /src/include | |
parent | 90f6507c3b94b22ea78dc5e7054af501a80932f0 (diff) | |
download | krb5-7bca89626e53f258397818a9b0d838a0a3e00f5b.tar.gz krb5-7bca89626e53f258397818a9b0d838a0a3e00f5b.tar.xz krb5-7bca89626e53f258397818a9b0d838a0a3e00f5b.zip |
Build with Visual Studio 2012
It's more aggressive about enforcing that keywords are not macros
in C++ mode, and has bumped the MFC version to 11.
Keep compatibility with older versions of Visual Studio, appropriately
conditionalized.
ticket: 7664 (new)
tags: pullup
target_version: 1.11.4
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/win-mac.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/win-mac.h b/src/include/win-mac.h index daec295b2c..2d8090adbf 100644 --- a/src/include/win-mac.h +++ b/src/include/win-mac.h @@ -119,8 +119,10 @@ typedef _W64 int ssize_t; #define NO_PASSWORD #define HAVE_STRERROR #define SYS_ERRLIST_DECLARED -/* if __STDC_VERSION__ >= 199901L this shouldn't be needed */ +/* Visual Studio 2012 errors out when we macroize keywords in C++ mode */ +#ifndef __cplusplus #define inline __inline +#endif #define NEED_INSIXADDR_ANY #define ENABLE_THREADS #endif |