diff options
author | Marc Laukien <marc@zeroc.com> | 2006-08-14 21:17:15 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2006-08-14 21:17:15 +0000 |
commit | 7d3986c24c40a275437f4f71b31bab0f05ea120a (patch) | |
tree | 029d4fc2e28303b992cc092eb8390d6bf88d5991 /cpp | |
parent | fix for VC6.0 (diff) | |
download | ice-7d3986c24c40a275437f4f71b31bab0f05ea120a.tar.bz2 ice-7d3986c24c40a275437f4f71b31bab0f05ea120a.tar.xz ice-7d3986c24c40a275437f4f71b31bab0f05ea120a.zip |
fix for VC6.0
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/icecpp/cexp.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/icecpp/cexp.y b/cpp/src/icecpp/cexp.y index 1fc657d7725..4e7c64cc09a 100644 --- a/cpp/src/icecpp/cexp.y +++ b/cpp/src/icecpp/cexp.y @@ -246,7 +246,7 @@ static void integer_overflow PROTO((void)); // // Required to allow the code to compile with VC 8 with bison 2.1. // -#if _MSC_VER == 1400 +#if defined(_MSC_VER) && _MSC_VER == 1400 # define __STDC__ # define YYMALLOC # define YYFREE @@ -256,7 +256,7 @@ static void integer_overflow PROTO((void)); // Required to allow the code to compile with VC 6 (and newer // versions?) with bison 2.3. // -#if _MSC_VER < 1300 // TODO: Change to "#ifdef _MSC_VER" if newer VC versions also need this. +#if defined(_MSC_VER) && _MSC_VER < 1300 // TODO: Change to "#ifdef _MSC_VER" if newer VC versions also need this. # define YYMALLOC malloc # define YYFREE free #endif |