diff -u a/bitfile.cpp b/bitfile.cpp --- a/bitfile.cpp 2017-08-16 23:18:43.000000000 +1000 +++ b/bitfile.cpp 2021-09-05 13:54:41.982983499 +1000 @@ -96,7 +96,7 @@ length = ftell(fp); /* Fix at end */ fseek(fp, 0, SEEK_SET); if(buffer) delete [] buffer; - buffer= new byte[length]; + buffer= new ::byte[length]; if (buffer == 0) return 1; fread(buffer,1, length, fp); @@ -128,7 +128,7 @@ length >>= 1; /* We read two Hex nibbles for each byte*/ fseek(fp, 0, SEEK_SET); if(buffer) delete [] buffer; - buffer= new byte[length]; + buffer= new ::byte[length]; /* FIXME: generate a dummy header*/ if (buffer == 0) @@ -176,7 +176,7 @@ /* FIXME: Fill in dtime and date from the input file */ if(buffer) delete [] buffer; - buffer=new byte[length]; + buffer=new ::byte[length]; while ((fgets(buf, 1024, fp)) != 0) { uint32_t count; @@ -333,13 +333,13 @@ void BitFile::processData(FILE *fp) { - byte t[4]; + ::byte t[4]; fread(t,1,4,fp); length=(t[0]<<24)+(t[1]<<16)+(t[2]<<8)+t[3]; if(buffer) delete [] buffer; - buffer=new byte[length]; + buffer=new ::byte[length]; for(unsigned int i=0; i>16) @@ -616,11 +616,11 @@ void BitFile::readField(string &field, FILE *fp) { - byte t[2]; + ::byte t[2]; fread(t,1,2,fp); unsigned short len=(t[0]<<8)+t[1]; for(int i=0; i