mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
parser-inc: define __SIZE_TYPE__ and __PTRDIFF_TYPE__
This fixes an Interrogate parse error in termux when /usr/include gets added as -S argument
This commit is contained in:
parent
4f4b79295f
commit
97a19c278b
@ -27,16 +27,18 @@ typedef unsigned long ulong;
|
|||||||
typedef unsigned short ushort;
|
typedef unsigned short ushort;
|
||||||
typedef unsigned char uchar;
|
typedef unsigned char uchar;
|
||||||
|
|
||||||
inline namespace std {
|
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
typedef unsigned long long size_t;
|
#define __SIZE_TYPE__ unsigned long long
|
||||||
typedef long long ssize_t;
|
#define __PTRDIFF_TYPE__ long long
|
||||||
typedef long long ptrdiff_t;
|
|
||||||
#else
|
#else
|
||||||
typedef unsigned long size_t;
|
#define __SIZE_TYPE__ unsigned long
|
||||||
typedef long ssize_t;
|
#define __PTRDIFF_TYPE__ long
|
||||||
typedef long ptrdiff_t;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
inline namespace std {
|
||||||
|
typedef __SIZE_TYPE__ size_t;
|
||||||
|
typedef __PTRDIFF_TYPE__ ssize_t;
|
||||||
|
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct timeval;
|
struct timeval;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user