source: miniini/miniini/include/typedefs.h @ 5:bcf82ebed545

Last change on this file since 5:bcf82ebed545 was 5:bcf82ebed545, checked in by vadim@…, 3 years ago

Implement exports for DLL builds on WIN32 paltform

File size: 1.5 KB
Line 
1// Copyright (C) 2009-2010 Ferdinand Majerech
2// This file is part of MiniINI
3// For conditions of distribution and use, see copyright notice in LICENSE.txt
4
5#ifndef TYPEDEFS_H_INCLUDED
6#define TYPEDEFS_H_INCLUDED
7
8#include <stdint.h> 
9#if defined(WIN32) || defined(_WIN32_WCE)
10#ifdef miniini_EXPORTS
11#define MINIINI_EXPORT __declspec(dllexport)
12#else
13#define MINIINI_EXPORT __declspec(dllexport)
14#endif
15#else
16#define MINIINI_EXPORT
17#endif
18
19namespace miniini_private
20{
21
22/// @cond PRIVATE
23//int typedefs
24//Typedefs for fastest ints
25typedef uint_fast8_t              ub;
26typedef int_fast8_t                b;
27typedef uint_fast16_t             us;
28typedef int_fast16_t               s;
29typedef uint_fast32_t             ui;
30typedef int_fast32_t               i;
31typedef int_fast64_t              ll;
32typedef uint_fast32_t            ull;
33
34//Typedefs for chars
35typedef char                       c;
36typedef wchar_t                   wc;
37
38//Typedefs for exact size ints
39typedef int8_t                    s8;
40typedef uint8_t                   u8;
41typedef int16_t                  s16;
42typedef uint16_t                 u16;
43typedef int32_t                  s32;
44typedef uint32_t                 u32;
45typedef int64_t                  s64;
46typedef uint64_t                 u64;
47
48//Typedefs for biggest ints
49typedef intmax_t                sbig;
50typedef uintmax_t               ubig;
51
52//Typedefs for floats
53typedef float                      f;
54typedef double                     d;
55typedef long double               ld;
56/// @endcond
57
58}
59#endif // TYPEDEFS_H_INCLUDED
Note: See TracBrowser for help on using the repository browser.