소스 검색

Use stdint.h to define the basic types.

Michael Hope 4 년 전
부모
커밋
828facd2b7
1개의 변경된 파일10개의 추가작업 그리고 8개의 파일을 삭제
  1. 10 8
      libmaple/include/libmaple/libmaple_types.h

+ 10 - 8
libmaple/include/libmaple/libmaple_types.h 파일 보기

@@ -37,15 +37,17 @@
37 37
 extern "C" {
38 38
 #endif
39 39
 
40
-typedef unsigned char uint8;
41
-typedef unsigned short uint16;
42
-typedef unsigned int uint32;
43
-typedef unsigned long long uint64;
40
+#include <stdint.h>
44 41
 
45
-typedef signed char int8;
46
-typedef short int16;
47
-typedef int int32;
48
-typedef long long int64;
42
+typedef uint8_t uint8;
43
+typedef uint16_t uint16;
44
+typedef uint32_t uint32;
45
+typedef uint64_t uint64;
46
+
47
+typedef int8_t int8;
48
+typedef int16_t int16;
49
+typedef int32_t int32;
50
+typedef int64_t int64;
49 51
 
50 52
 typedef void (*voidFuncPtr)(void);
51 53
 typedef void (*voidArgumentFuncPtr)(void *);