Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/gds3d/files/patch-manual-gdsparse.cpp
16461 views
1
- workaround for error: reference to 'byte' is ambiguous, see https://github.com/trilomix/GDS3D/issues/23
2
3
--- ../libgdsto3d/gdsparse.cpp.orig 2023-07-20 10:59:11.684448000 -0700
4
+++ ../libgdsto3d/gdsparse.cpp 2023-07-20 10:59:35.325794000 -0700
5
@@ -127,7 +127,7 @@
6
7
bool GDSParse::ParseFile(char *topcell)
8
{
9
- byte recordtype, datatype;
10
+ ::byte recordtype, datatype;
11
char *tempstr;
12
//struct ProcessLayer *layer = NULL;
13
14
@@ -1086,7 +1086,7 @@
15
16
short GDSParse::GetBitArray()
17
{
18
- byte byte1;
19
+ ::byte byte1;
20
21
fread(&byte1, 1, 1, _iptr);
22
fread(&byte1, 1, 1, _iptr);
23
@@ -1097,8 +1097,8 @@
24
25
double GDSParse::GetEightByteReal()
26
{
27
- byte value;
28
- byte b8, b2, b3, b4, b5, b6, b7;
29
+ ::byte value;
30
+ ::byte b8, b2, b3, b4, b5, b6, b7;
31
double sign=1.0;
32
double exponent;
33
double mant;
34
35