Changeset 3525 for trunk/kLdr/kLdr.h
- Timestamp:
- Aug 20, 2007, 12:14:55 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdr.h
r2974 r3525 25 25 */ 26 26 27 #ifndef __ kLdr_h__28 #define __ kLdr_h__27 #ifndef ___kLdr_h___ 28 #define ___kLdr_h___ 29 29 30 30 #ifdef __cplusplus … … 33 33 34 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 UINT8_C(c) (c) 53 # define UINT16_C(c) (c) 54 # define UINT32_C(c) (c ## U) 55 # define UINT64_C(c) (c ## ULL) 56 # define INT8_C(c) (c) 57 # define INT16_C(c) (c) 58 # define INT32_C(c) (c) 59 # define INT64_C(c) (c ## LL) 60 # define INT8_MIN (INT8_C(-0x7f) - 1) 61 # define INT16_MIN (INT16_C(-0x7fff) - 1) 62 # define INT32_MIN (INT32_C(-0x7fffffff) - 1) 63 # define INT64_MIN (INT64_C(-0x7fffffffffffffff) - 1) 64 # define INT8_MAX INT8_C(0x7f) 65 # define INT16_MAX INT16_C(0x7fff) 66 # define INT32_MAX INT32_C(0x7fffffff) 67 # define INT64_MAX INT64_C(0x7fffffffffffffff) 68 # define UINT8_MAX UINT8_C(0xff) 69 # define UINT16_MAX UINT16_C(0xffff) 70 # define UINT32_MAX UINT32_C(0xffffffff) 71 # define UINT64_MAX UINT64_C(0xffffffffffffffff) 72 # else 73 # include <stdint.h> 74 # endif 75 #endif /* !KLDR_NO_KLDR_H_INCLUDES */ 35 * Include the base typedefs and macros. 36 */ 37 #include "kLdrBase.h" 76 38 77 39 … … 640 602 KLDRENDIAN_32BIT_HACK = 0x7fffffff 641 603 } KLDRENDIAN; 642 643 644 /** @def KLDR_LITTLE_ENDIAN645 * The kLdr build is for a little endian target. */646 /** @def KLDR_BIG_ENDIAN647 * The kLdr build is for a big endian target. */648 #if !defined(KLDR_LITTLE_ENDIAN) && !defined(KLDR_BIG_ENDIAN)649 # define KLDR_LITTLE_ENDIAN650 #endif651 #ifdef __DOXYGEN__652 # define KLDR_BIG_ENDIAN653 #endif654 604 655 605
Note:
See TracChangeset
for help on using the changeset viewer.