source: pacpusframework/trunk/include/Pacpus/kernel/cstdint.h@ 31

Last change on this file since 31 was 31, checked in by sgosseli, 11 years ago

Huge commit: use the new includes style in all the files, add the license header in all the headers, and in some cpp.

File size: 771 bytes
Line 
1/**
2 *
3 * Distributed under the UTC Heudiascy Pacpus License, Version 1.0.
4 * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved.
5 *
6 * See the LICENSE file for more information or a copy at:
7 * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt
8 *
9 */
10
11#ifndef DEF_PACPUS_CSTDINT_H
12#define DEF_PACPUS_CSTDINT_H
13
14#if defined(_MSC_VER) && _MSC_VER < 1600
15// MSVC before 2010 has not <stdint.h> header (is not C99-compatible)
16
17typedef __int8 int8_t;
18typedef __int16 int16_t;
19typedef __int32 int32_t;
20typedef __int64 int64_t;
21
22typedef unsigned __int8 uint8_t;
23typedef unsigned __int16 uint16_t;
24typedef unsigned __int32 uint32_t;
25typedef unsigned __int64 uint64_t;
26
27#else
28
29#include <stdint.h>
30
31#endif
32
33#endif // DEF_PACPUS_CSTDINT_H
34
Note: See TracBrowser for help on using the repository browser.