Changeset 2944 for trunk/kLdr/kLdr.h
- Timestamp:
- Jan 13, 2007, 4:55:40 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdr.h
r2891 r2944 32 32 #endif 33 33 34 /* kLdr depend on size_t, [u]intNN_t, [u]intptr_t and some related constants. */ 35 #include <sys/types.h> 36 #include <stddef.h> 37 #ifdef _MSC_VER 38 typedef signed char int8_t; 39 typedef unsigned char uint8_t; 40 typedef signed short int16_t; 41 typedef unsigned short uint16_t; 42 typedef signed int int32_t; 43 typedef unsigned int uint32_t; 44 typedef signed __int64 int64_t; 45 typedef unsigned __int64 uint64_t; 46 typedef int64_t intmax_t; 47 typedef uint64_t uintmax_t; 48 # define UINT16_C(c) (c ## U) 49 # define UINT32_C(c) (c ## U) 50 # define UINT64_C(c) (c ## ULL) 51 #else 52 # include <stdint.h> 53 #endif 34 /* 35 * kLdr depend on size_t, [u]intNN_t, [u]intptr_t and some related constants. 36 * If KLDR_NO_KLDR_H_INCLUDES is defined, these has already been defined. 37 */ 38 #ifndef KLDR_NO_KLDR_H_INCLUDES 39 # include <sys/types.h> 40 # include <stddef.h> 41 # ifdef _MSC_VER 42 typedef signed char int8_t; 43 typedef unsigned char uint8_t; 44 typedef signed short int16_t; 45 typedef unsigned short uint16_t; 46 typedef signed int int32_t; 47 typedef unsigned int uint32_t; 48 typedef signed __int64 int64_t; 49 typedef unsigned __int64 uint64_t; 50 typedef int64_t intmax_t; 51 typedef uint64_t uintmax_t; 52 # define UINT16_C(c) (c ## U) 53 # define UINT32_C(c) (c ## U) 54 # define UINT64_C(c) (c ## ULL) 55 # else 56 # include <stdint.h> 57 # endif 58 #endif /* !KLDR_NO_KLDR_H_INCLUDES */ 54 59 55 60
Note:
See TracChangeset
for help on using the changeset viewer.