File tree 1 file changed +16
-16
lines changed
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()
1217
1217
1218
1218
#ifdef __alpha__
1219
1219
this_arch=" alpha" ;
1220
- #elif __armel__
1220
+ #elif defined( __armel__)
1221
1221
this_arch=" armel" ;
1222
- #elif __aarch64__
1222
+ #elif defined( __aarch64__)
1223
1223
this_arch=" arm64" ;
1224
- #elif __arm__
1224
+ #elif defined( __arm__)
1225
1225
#ifdef __ARM_PCS_VFP
1226
1226
this_arch=" armhf" ; // variant of arm with hard float
1227
1227
#else
1228
1228
this_arch=" arm" ;
1229
1229
#endif
1230
- #elif __mipsel__
1230
+ #elif defined( __mipsel__)
1231
1231
#if _MIPS_SIM==_ABIO32
1232
1232
this_arch=" mipsel" ;
1233
1233
#elif _MIPS_SIM==_ABIN32
1234
1234
this_arch=" mipsn32el" ;
1235
1235
#else
1236
1236
this_arch=" mips64el" ;
1237
1237
#endif
1238
- #elif __mips__
1238
+ #elif defined( __mips__)
1239
1239
#if _MIPS_SIM==_ABIO32
1240
1240
this_arch=" mips" ;
1241
1241
#elif _MIPS_SIM==_ABIN32
1242
1242
this_arch=" mipsn32" ;
1243
1243
#else
1244
1244
this_arch=" mips64" ;
1245
1245
#endif
1246
- #elif __powerpc__
1246
+ #elif defined( __powerpc__)
1247
1247
#if defined(__ppc64__) || defined(__PPC64__) || \
1248
1248
defined (__powerpc64__) || defined (__POWERPC64__)
1249
1249
#ifdef __LITTLE_ENDIAN__
@@ -1254,33 +1254,33 @@ irep_idt configt::this_architecture()
1254
1254
#else
1255
1255
this_arch=" powerpc" ;
1256
1256
#endif
1257
- #elif __sparc__
1257
+ #elif defined( __sparc__)
1258
1258
#ifdef __arch64__
1259
1259
this_arch=" sparc64" ;
1260
1260
#else
1261
1261
this_arch=" sparc" ;
1262
1262
#endif
1263
- #elif __ia64__
1263
+ #elif defined( __ia64__)
1264
1264
this_arch=" ia64" ;
1265
- #elif __s390x__
1265
+ #elif defined( __s390x__)
1266
1266
this_arch=" s390x" ;
1267
- #elif __s390__
1267
+ #elif defined( __s390__)
1268
1268
this_arch=" s390" ;
1269
- #elif __x86_64__
1269
+ #elif defined( __x86_64__)
1270
1270
#ifdef __ILP32__
1271
1271
this_arch=" x32" ; // variant of x86_64 with 32-bit pointers
1272
1272
#else
1273
1273
this_arch=" x86_64" ;
1274
1274
#endif
1275
- #elif __i386__
1275
+ #elif defined( __i386__)
1276
1276
this_arch=" i386" ;
1277
- #elif _WIN64
1277
+ #elif defined( _WIN64)
1278
1278
this_arch=" x86_64" ;
1279
- #elif _WIN32
1279
+ #elif defined( _WIN32)
1280
1280
this_arch=" i386" ;
1281
- #elif __hppa__
1281
+ #elif defined( __hppa__)
1282
1282
this_arch=" hppa" ;
1283
- #elif __sh__
1283
+ #elif defined( __sh__)
1284
1284
this_arch=" sh4" ;
1285
1285
#else
1286
1286
// something new and unknown!
You can’t perform that action at this time.
0 commit comments