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

Last change on this file since 73 was 73, checked in by Marek Kurdej, 11 years ago

Minor: line-endings.

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