File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -1217,33 +1217,33 @@ irep_idt configt::this_architecture()
12171217
12181218 #ifdef __alpha__
12191219 this_arch=" alpha" ;
1220- #elif __armel__
1220+ #elif defined( __armel__)
12211221 this_arch=" armel" ;
1222- #elif __aarch64__
1222+ #elif defined( __aarch64__)
12231223 this_arch=" arm64" ;
1224- #elif __arm__
1224+ #elif defined( __arm__)
12251225 #ifdef __ARM_PCS_VFP
12261226 this_arch=" armhf" ; // variant of arm with hard float
12271227 #else
12281228 this_arch=" arm" ;
12291229 #endif
1230- #elif __mipsel__
1230+ #elif defined( __mipsel__)
12311231 #if _MIPS_SIM==_ABIO32
12321232 this_arch=" mipsel" ;
12331233 #elif _MIPS_SIM==_ABIN32
12341234 this_arch=" mipsn32el" ;
12351235 #else
12361236 this_arch=" mips64el" ;
12371237 #endif
1238- #elif __mips__
1238+ #elif defined( __mips__)
12391239 #if _MIPS_SIM==_ABIO32
12401240 this_arch=" mips" ;
12411241 #elif _MIPS_SIM==_ABIN32
12421242 this_arch=" mipsn32" ;
12431243 #else
12441244 this_arch=" mips64" ;
12451245 #endif
1246- #elif __powerpc__
1246+ #elif defined( __powerpc__)
12471247 #if defined(__ppc64__) || defined(__PPC64__) || \
12481248 defined (__powerpc64__) || defined (__POWERPC64__)
12491249 #ifdef __LITTLE_ENDIAN__
@@ -1254,33 +1254,33 @@ irep_idt configt::this_architecture()
12541254 #else
12551255 this_arch=" powerpc" ;
12561256 #endif
1257- #elif __sparc__
1257+ #elif defined( __sparc__)
12581258 #ifdef __arch64__
12591259 this_arch=" sparc64" ;
12601260 #else
12611261 this_arch=" sparc" ;
12621262 #endif
1263- #elif __ia64__
1263+ #elif defined( __ia64__)
12641264 this_arch=" ia64" ;
1265- #elif __s390x__
1265+ #elif defined( __s390x__)
12661266 this_arch=" s390x" ;
1267- #elif __s390__
1267+ #elif defined( __s390__)
12681268 this_arch=" s390" ;
1269- #elif __x86_64__
1269+ #elif defined( __x86_64__)
12701270 #ifdef __ILP32__
12711271 this_arch=" x32" ; // variant of x86_64 with 32-bit pointers
12721272 #else
12731273 this_arch=" x86_64" ;
12741274 #endif
1275- #elif __i386__
1275+ #elif defined( __i386__)
12761276 this_arch=" i386" ;
1277- #elif _WIN64
1277+ #elif defined( _WIN64)
12781278 this_arch=" x86_64" ;
1279- #elif _WIN32
1279+ #elif defined( _WIN32)
12801280 this_arch=" i386" ;
1281- #elif __hppa__
1281+ #elif defined( __hppa__)
12821282 this_arch=" hppa" ;
1283- #elif __sh__
1283+ #elif defined( __sh__)
12841284 this_arch=" sh4" ;
12851285 #else
12861286 // something new and unknown!
You can’t perform that action at this time.
0 commit comments