소스 검색

add some stdint definitions

rdb 14 년 전
부모
커밋
0703e32d6f
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      dtool/src/parser-inc/stdint.h

+ 10 - 0
dtool/src/parser-inc/stdint.h

@@ -31,5 +31,15 @@ typedef unsigned short int uint16_t;
 typedef unsigned int uint32_t;
 typedef unsigned long long int uint64_t;
 
+typedef long long int intmax_t;
+typedef unsigned long long int uintmax_t;
+
+#if __WORDSIZE == 64
+typedef int64_t intptr_t;
+typedef uint64_t uintptr_t;
+#else
+typedef int32_t intptr_t;
+typedef uint32_t uintptr_t;
 #endif
 
+#endif