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