mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-15 00:31:29 +00:00
prepare-headers: work around another incompatibility between CGBase and newlib
This commit is contained in:
parent
b2790cf0fb
commit
9edd199c83
@ -132,19 +132,24 @@ cat > $OUT/CGBase.h <<END_MARKER
|
|||||||
#ifndef __CGBASE__WRAP__
|
#ifndef __CGBASE__WRAP__
|
||||||
#define __CGBASE__WRAP__
|
#define __CGBASE__WRAP__
|
||||||
|
|
||||||
#include "math.h"
|
#include <math.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
/* CGBase contains a hardcoded #ifdef that decides that stdint.h is available in MWERKS > 0x2300.
|
/* CGBase contains a hardcoded #ifdef that decides that stdint.h is available in MWERKS > 0x2300.
|
||||||
... otherwise, it contains an incompatible redefinition. */
|
... otherwise, it contains an incompatible redefinition. */
|
||||||
#pragma push_macro("__MWERKS__")
|
#pragma push_macro("__MWERKS__")
|
||||||
#define __MWERKS__ 0x6666
|
#define __MWERKS__ 0x6666
|
||||||
|
|
||||||
|
#define u_int32_t __cgbase_incompatible_u_int32_t
|
||||||
|
|
||||||
END_MARKER
|
END_MARKER
|
||||||
|
|
||||||
sed 's/\r$//' < $IN/CGBase.h | tr '\r' '\n' >> $OUT/CGBase.h
|
sed 's/\r$//' < $IN/CGBase.h | tr '\r' '\n' >> $OUT/CGBase.h
|
||||||
|
|
||||||
cat >> $OUT/CGBase.h <<END_MARKER
|
cat >> $OUT/CGBase.h <<END_MARKER
|
||||||
|
|
||||||
|
#undef u_int32_t __cgbase_incompatible_u_int32_t
|
||||||
|
|
||||||
#pragma pop_macro("__MWERKS__")
|
#pragma pop_macro("__MWERKS__")
|
||||||
|
|
||||||
#endif /* __CGBASE__WRAP__ */
|
#endif /* __CGBASE__WRAP__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user