Fix ftbfs on Fedora 34

error: reference to ‘byte’ is ambiguous

Signed-off-by: François Andriot <francois.andriot@free.fr>
(cherry picked from commit a499c5423b)
r14.0.x
François Andriot 4 years ago committed by Michele Calgaro
parent e33521544b
commit 56a28b57ea
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -61,7 +61,7 @@ class tBuf {
// int hicharnum;
// bool space;
byte * buf;
::byte * buf;
unsigned len;
bool isCompressed;
public:
@ -81,9 +81,9 @@ class tBuf {
delete[]buf;
buf = 0L;
}
void setText(const byte * text, unsigned int txtlen =
void setText(const ::byte * text, unsigned int txtlen =
0, bool txtcomp = false);
byte *text() const {
::byte *text() const {
return buf;
}
unsigned Len() const {
@ -102,7 +102,7 @@ class tBuf {
unsigned Compress();
private:
unsigned Issue(byte src, int &bSpace);
unsigned Issue(::byte src, int &bSpace);
void Dump() const {
printf("\nbuffer len=%d", len);
}};

Loading…
Cancel
Save