source: pacpusframework/branches/0.0.x/include/Pacpus/kernel/cstdint.h

Last change on this file was 91, checked in by DHERBOMEZ Gérald, 11 years ago

Improvement of the build system to avoid some workarounds

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1// %pacpus:license{
2// This file is part of the PACPUS framework distributed under the
3// CECILL-C License, Version 1.0.
4// %pacpus:license}
5/// @file
6/// @author Marek Kurdej <firstname.surname@utc.fr>
7/// @date June, 2012
8/// @version $Id: cstdint.h 91 2013-05-19 10:32:48Z gdherbom $
9/// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
10/// @brief Portable version of \<cstdint\> C99 header.
11///
12/// Portable version of \<cstdint\> C99 header.
13/// It is necessary due to the non-conformance of MSVC before version 2010 to the C99 standard.
14
15#ifndef DEF_PACPUS_CSTDINT_H
16#define DEF_PACPUS_CSTDINT_H
17
18#if defined(_MSC_VER) && _MSC_VER < 1600
19// MSVC before 2010 has not <stdint.h> header (is not C99-compatible)
20
21typedef __int8 int8_t;
22typedef __int16 int16_t;
23typedef __int32 int32_t;
24typedef __int64 int64_t;
25
26typedef unsigned __int8 uint8_t;
27typedef unsigned __int16 uint16_t;
28typedef unsigned __int32 uint32_t;
29typedef unsigned __int64 uint64_t;
30
31#else
32
33#include <stdint.h>
34
35#endif
36
37#endif // DEF_PACPUS_CSTDINT_H
38
Note: See TracBrowser for help on using the repository browser.