Try to build native cygwin using 'make PLATFORM=lnx'
This commit is contained in:
parent
577c3fb0fe
commit
240842ff68
@ -38,7 +38,7 @@
|
||||
#ifdef _MSC_VER
|
||||
#include <windows.h>
|
||||
#include <limits.h>
|
||||
#elif defined(__MINGW32__)
|
||||
#elif defined(__MINGW32__) || defined(__CYGWIN__)
|
||||
#include <stdint.h>
|
||||
#else
|
||||
#endif
|
||||
@ -129,7 +129,7 @@ typedef unsigned int uint32_t;
|
||||
#endif
|
||||
#endif /*#ifdef _MSC_VER */
|
||||
|
||||
#if defined(__GNUC__) && !defined(__MINGW32__)
|
||||
#if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
|
||||
typedef unsigned char uint8_t;
|
||||
typedef unsigned short uint16_t;
|
||||
typedef unsigned int uint32_t;
|
||||
|
@ -156,12 +156,17 @@ public:
|
||||
gfile& operator>> (uint8_t& i);
|
||||
gfile& operator>> (uint16_t& i);
|
||||
gfile& operator>> (uint32_t& i);
|
||||
#if !defined(__CYGWIN__)
|
||||
gfile& operator>> (unsigned long& i);
|
||||
#endif
|
||||
|
||||
gfile& operator>> (char& i) { return operator>>((uint8_t&)i); }
|
||||
gfile& operator>> (int8_t& i) { return operator>>((uint8_t&)i); }
|
||||
gfile& operator>> (int16_t& i) { return operator>>((uint16_t&)i); }
|
||||
gfile& operator>> (int32_t& i) { return operator>>((uint32_t&)i); }
|
||||
#if !defined(__CYGWIN__)
|
||||
gfile& operator>> (long& i) { return operator>>((unsigned long&)i); }
|
||||
#endif
|
||||
|
||||
#ifdef __GOLDWARE_HAS_BOOL
|
||||
gfile& operator<< (bool o);
|
||||
@ -169,12 +174,17 @@ public:
|
||||
gfile& operator<< (uint8_t o);
|
||||
gfile& operator<< (uint16_t o);
|
||||
gfile& operator<< (uint32_t o);
|
||||
#if !defined(__CYGWIN__)
|
||||
gfile& operator<< (unsigned long o);
|
||||
#endif
|
||||
|
||||
gfile& operator<< (char o) { return operator<<((uint8_t )o); }
|
||||
gfile& operator<< (int8_t o) { return operator<<((uint8_t )o); }
|
||||
gfile& operator<< (int16_t o) { return operator<<((uint16_t)o); }
|
||||
gfile& operator<< (int32_t o) { return operator<<((uint32_t)o); }
|
||||
#if !defined(__CYGWIN__)
|
||||
gfile& operator<< (long o) { return operator<<((unsigned long)o); }
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user