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

Last change on this file since 81 was 76, checked in by Marek Kurdej, 12 years ago

Added: automated license updating lines:
%pacpus:license{
%pacpus:license}

  • Property svn:keywords set to Id
File size: 1.1 KB
RevLine 
[76]1// %pacpus:license{
[73]2// This file is part of the PACPUS framework distributed under the
3// CECILL-C License, Version 1.0.
[76]4// %pacpus:license}
[73]5/// @file
6/// @author Marek Kurdej <firstname.surname@utc.fr>
7/// @date Month, Year
8/// @version $Id: cstdint.h 76 2013-01-10 17:05:10Z kurdejma $
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.