MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
jtie_stdint.h
1 /*
2  Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; version 2 of the License.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 /*
18  * jtie_stdint.h
19  */
20 
21 #ifndef jtie_stdint_h
22 #define jtie_stdint_h
23 
24 /*
25  * JTie pre-defines type mappings for the C99 exact-width type aliases
26  * int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t
27  * as defined in <stdint.h> as well as uses these types internally.
28  *
29  * Unfortunately, some C/C++ compiler still lack a stdint.h header file.
30  * (For instance, MS Visual Studio until VS2010.) We delegate to a helper
31  * file that handles the absence of the <stdint.h>.
32  *
33  * Applications of JTie (like NDB JTie) may define their own type aliases
34  * for exact-width types (like Uint8, Int8 etc), for which type mappings can
35  * be easily provided with just a few (NDB) JTie (_trait alias) definitions.
36  *
37  * Here, we do NOT want to introduce artificial dependencies by referring to
38  * application-specific aliases for JTie's generic implementation and tests:
39  * compiler/platform testing has proven (!) much easier when the JTie core
40  * code is self-contained and the JTie unit tests compile & run standalone.
41  */
42 #include "mystdint.h"
43 
44 #endif // jtie_stdint_h