Define integer sizes before including SYSTEM.h

This commit is contained in:
David Brown 2016-09-06 20:48:22 +01:00
parent 682fa59e42
commit ebfc60f49d
208 changed files with 1164 additions and 787 deletions

View file

@ -421,6 +421,12 @@ void writeConfigurationMod() {
int main(int argc, char *argv[])
{
// Make sure SYSTEM.h has set up our core data types correctly.
assert(sizeof(int8) == 1, "sizeof(int8) is not 1.");
assert(sizeof(int16) == 2, "sizeof(int16) is not 2.");
assert(sizeof(int32) == 4, "sizeof(int32) is not 4.");
assert(sizeof(int64) == 8, "sizeof(int64) is not 8.");
oname = getenv("ONAME"); if (!oname) oname = macrotostring(O_NAME);
if (argc>1) {