4c3598
build system: ccenv.sh: legacy PE targets: define __PE__ and friends as needed.
@@ -1412,6 +1412,20 @@ ccenv_set_os_pe_switches()
|
|
1412
1412
|
;;
|
1413
1413
|
esac
|
1414
1414
|
fi
|
1415
|
+
|
1416
|
+
if [ "$ccenv_cc_binfmt" = 'PE' ]; then
|
1417
|
+
if ! cfgtest_macro_definition '__PE__'; then
|
1418
|
+
ccenv_cflags_os="${ccenv_cflags_os} -D__PE__"
|
1419
|
+
fi
|
1420
|
+
|
1421
|
+
if ! cfgtest_macro_definition '__dllexport'; then
|
1422
|
+
ccenv_cflags_os="${ccenv_cflags_os} -D__dllexport=__attribute__\(\(__dllexport__\)\)"
|
1423
|
+
fi
|
1424
|
+
|
1425
|
+
if ! cfgtest_macro_definition '__dllimport'; then
|
1426
|
+
ccenv_cflags_os="${ccenv_cflags_os} -D__dllimport=__attribute__\(\(__dllimport__\)\)"
|
1427
|
+
fi
|
1428
|
+
fi
|
1415
1429
|
}
|
1416
1430
|
|
1417
1431
|
ccenv_output_defs()
|