]> git.zerfleddert.de Git - proxmark3-svn/blob - bootrom/stdint.h
Add license headers to armsrc/bootrom/common stuff
[proxmark3-svn] / bootrom / stdint.h
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 Hector Martin "marcan" <marcan@marcansoft.com>
3 //
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
6 // the license.
7 //-----------------------------------------------------------------------------
8 // Replacement stdint.h because GCC doesn't come with it yet (C99)
9 //-----------------------------------------------------------------------------
10
11 #ifndef __STDINT_H
12 #define __STDINT_H
13
14 typedef signed char int8_t;
15 typedef short int int16_t;
16 typedef int int32_t;
17 typedef long long int int64_t;
18
19 typedef unsigned char uint8_t;
20 typedef unsigned short int uint16_t;
21 typedef unsigned int uint32_t;
22 typedef unsigned long long int uint64_t;
23
24 typedef int int_fast16_t;
25 typedef int int_fast32_t;
26
27 typedef unsigned int uint_fast16_t;
28 typedef unsigned int uint_fast32_t;
29
30 typedef int intptr_t;
31 typedef unsigned int uintptr_t;
32
33 #define __INT64_C(c) c ## LL
34 #define __UINT64_C(c) c ## ULL
35
36 #define __PRI64_RANK "ll"
37 #define __PRIFAST_RANK ""
38 #define __PRIPTR_RANK ""
39
40 #endif /* __STDINT_H */
Impressum, Datenschutz