‘uint32_t’ was not declared in this scope; did you mean ‘u_int32_t’
GCC: 10.2.0
/dades/heXon/dry/Source/Dry/Resource/Decompress.cpp:904:13: error: variable or field ‘ReadBigEndian4byteWord’ declared void
904 | static void ReadBigEndian4byteWord(uint32_t* pBlock, const unsigned char *s)
| ^~~~~~~~~~~~~~~~~~~~~~
/dades/heXon/dry/Source/Dry/Resource/Decompress.cpp:904:36: error: ‘uint32_t’ was not declared in this scope; did you mean ‘u_int32_t’?
904 | static void ReadBigEndian4byteWord(uint32_t* pBlock, const unsigned char *s)
| ^~~~~~~~
| u_int32_t
/dades/heXon/dry/Source/Dry/Resource/Decompress.cpp:904:46: error: ‘pBlock’ was not declared in this scope
904 | static void ReadBigEndian4byteWord(uint32_t* pBlock, const unsigned char *s)
| ^~~~~~
/dades/heXon/dry/Source/Dry/Resource/Decompress.cpp:904:54: error: expected primary-expression before ‘const’
904 | static void ReadBigEndian4byteWord(uint32_t* pBlock, const unsigned char *s)
| ^~~~~
/dades/heXon/dry/Source/Dry/Resource/Decompress.cpp: In function ‘void Dry::DecompressImageETC(unsigned char*, const void*, int, int, bool)’:
/dades/heXon/dry/Source/Dry/Resource/Decompress.cpp:936:13: error: ‘ReadBigEndian4byteWord’ was not declared in this scope
936 | ReadBigEndian4byteWord(&blockPart1, src);
| ^~~~~~~~~~~~~~~~~~~~~~
I fixed this by just using u_int32_t as suggested by the compiler
Edited by Rampoina