1 #ifndef _KVI_INTTYPES_H_
2 #define _KVI_INTTYPES_H_
30 #ifndef SYSTEM_SIZE_OF_SHORT_INT
31 #define SYSTEM_SIZE_OF_SHORT_INT SIZEOF_SHORT_INT
32 #define SYSTEM_SIZE_OF_INT SIZEOF_INT
33 #define SYSTEM_SIZE_OF_LONG_INT SIZEOF_LONG_INT
34 #define SYSTEM_SIZE_OF_LONG_LONG_INT SIZEOF_LONG_LONG_INT
37 #ifdef COMPILE_ON_WINDOWS
43 typedef int kvi_i32_t;
44 typedef unsigned int kvi_u32_t;
45 typedef short int kvi_i16_t;
46 typedef short unsigned int kvi_u16_t;
50 #if SYSTEM_SIZE_OF_LONG_INT == 8
54 #elif SYSTEM_SIZE_OF_INT == 8
58 #elif SYSTEM_SIZE_OF_LONG_LONG_INT == 8
69 #if SYSTEM_SIZE_OF_INT == 4
71 typedef int kvi_i32_t;
72 typedef unsigned int kvi_u32_t;
73 #elif SYSTEM_SIZE_OF_SHORT_INT == 4
75 typedef short int kvi_i32_t;
76 typedef short unsigned int kvi_u32_t;
77 #elif SYSTEM_SIZE_OF_LONG_INT == 4
78 typedef long int kvi_i32_t;
79 typedef unsigned long int kvi_u32_t;
81 #error "Can't find a 32-bit integral type on this system"
82 #error "Please report to pragma at kvirc dot net"
85 #if SYSTEM_SIZE_OF_SHORT_INT == 2
87 typedef short int kvi_i16_t;
88 typedef short unsigned int kvi_u16_t;
89 #elif SYSTEM_SIZE_OF_INT == 2
91 typedef int kvi_i16_t;
92 typedef long int kvi_u16_t;
94 #error "Can't find a 16-bit integral type on this system"
95 #error "Please report to pragma at kvirc dot net"
103 #endif //_KVI_INTTYPES_H_
char kvi_i8_t
Definition: kvi_inttypes.h:99
unsigned long long int kvi_u64_t
Definition: kvi_inttypes.h:66
unsigned char kvi_u8_t
Definition: kvi_inttypes.h:100
long long int kvi_i64_t
SYSTEM_SIZE_OF_SHORT_INT.
Definition: kvi_inttypes.h:65
This file contains compile time settings.