libicuid  1.4.1
icuid_types.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2016, Kurt Cancemi (kurt@x64architecture.com)
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 #ifndef __LIBICUID_TYPES_H__
18 #define __LIBICUID_TYPES_H__
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #ifndef _MSC_VER
25 #include <stdint.h>
26 #else
27 
28 #if (_MSC_VER < 1300)
29  typedef signed char int8_t;
30  typedef signed short int16_t;
31  typedef signed int int32_t;
32  typedef unsigned char uint8_t;
33  typedef unsigned short uint16_t;
34  typedef unsigned int uint32_t;
35 #else
36  typedef signed __int8 int8_t;
37  typedef signed __int16 int16_t;
38  typedef signed __int32 int32_t;
39  typedef unsigned __int8 uint8_t;
40  typedef unsigned __int16 uint16_t;
41  typedef unsigned __int32 uint32_t;
42 #endif
43 typedef signed __int64 int64_t;
44 typedef unsigned __int64 uint64_t;
45 
46 #endif /* _MSC_VER */
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif /* __LIBICUID_TYPES_H__ */