Path: blob/main/cad/gds3d/files/patch-manual-gdsparse.cpp
16461 views
- workaround for error: reference to 'byte' is ambiguous, see https://github.com/trilomix/GDS3D/issues/2312--- ../libgdsto3d/gdsparse.cpp.orig 2023-07-20 10:59:11.684448000 -07003+++ ../libgdsto3d/gdsparse.cpp 2023-07-20 10:59:35.325794000 -07004@@ -127,7 +127,7 @@56bool GDSParse::ParseFile(char *topcell)7{8- byte recordtype, datatype;9+ ::byte recordtype, datatype;10char *tempstr;11//struct ProcessLayer *layer = NULL;1213@@ -1086,7 +1086,7 @@1415short GDSParse::GetBitArray()16{17- byte byte1;18+ ::byte byte1;1920fread(&byte1, 1, 1, _iptr);21fread(&byte1, 1, 1, _iptr);22@@ -1097,8 +1097,8 @@2324double GDSParse::GetEightByteReal()25{26- byte value;27- byte b8, b2, b3, b4, b5, b6, b7;28+ ::byte value;29+ ::byte b8, b2, b3, b4, b5, b6, b7;30double sign=1.0;31double exponent;32double mant;333435