aboutsummaryrefslogtreecommitdiff
path: root/cad/gds3d
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-07-18 14:21:39 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-07-18 14:21:39 +0000
commit48eaab4ce10eeea0a409118ad2c340dbc6a2c1f8 (patch)
treee991cf8205e0e3ca312cfe8089d575ca8e4f100e /cad/gds3d
parent3972be552723188588177ccaf957cc112ef59b78 (diff)
downloadports-48eaab4ce10eeea0a409118ad2c340dbc6a2c1f8.tar.gz
ports-48eaab4ce10eeea0a409118ad2c340dbc6a2c1f8.zip
cad/gds3d: Fix build breakaga on 14 due to the 'byte' symbol collision
The previous fix didn't include one more location.
Diffstat (limited to 'cad/gds3d')
-rw-r--r--cad/gds3d/files/patch-manual-gdsparse.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/cad/gds3d/files/patch-manual-gdsparse.cpp b/cad/gds3d/files/patch-manual-gdsparse.cpp
new file mode 100644
index 000000000000..5042567f1bf9
--- /dev/null
+++ b/cad/gds3d/files/patch-manual-gdsparse.cpp
@@ -0,0 +1,33 @@
+- workaround for error: reference to 'byte' is ambiguous, see https://github.com/trilomix/GDS3D/issues/23
+
+--- ../libgdsto3d/gdsparse.cpp.orig 2023-07-20 10:59:11.684448000 -0700
++++ ../libgdsto3d/gdsparse.cpp 2023-07-20 10:59:35.325794000 -0700
+@@ -127,7 +127,7 @@
+
+ bool GDSParse::ParseFile(char *topcell)
+ {
+- byte recordtype, datatype;
++ ::byte recordtype, datatype;
+ char *tempstr;
+ //struct ProcessLayer *layer = NULL;
+
+@@ -1086,7 +1086,7 @@
+
+ short GDSParse::GetBitArray()
+ {
+- byte byte1;
++ ::byte byte1;
+
+ fread(&byte1, 1, 1, _iptr);
+ fread(&byte1, 1, 1, _iptr);
+@@ -1097,8 +1097,8 @@
+
+ double GDSParse::GetEightByteReal()
+ {
+- byte value;
+- byte b8, b2, b3, b4, b5, b6, b7;
++ ::byte value;
++ ::byte b8, b2, b3, b4, b5, b6, b7;
+ double sign=1.0;
+ double exponent;
+ double mant;