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

Last change on this file since 18 was 3, checked in by sgosseli, 12 years ago
  • Add the existing Pacpus files from pacpusdev and pacpuscore.
  • Provide a clean build system based on multiple CMake files.
File size: 707 bytes
Line 
1// Copyright Marek Kurdej 2010 - 2012.
2// Distributed under the UTC Heudiasyc Pacpus License, Version 1.0.
3// See accompanying file LICENSE_1_0.txt or copy at
4// http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt
5
6#ifndef PACPUS_CSTDINT_H
7#define PACPUS_CSTDINT_H
8
9#if defined(_MSC_VER) && _MSC_VER < 1600
10// MSVC before 2010 has not <stdint.h> header (is not C99-compatible)
11
12typedef __int8 int8_t;
13typedef __int16 int16_t;
14typedef __int32 int32_t;
15typedef __int64 int64_t;
16
17typedef unsigned __int8 uint8_t;
18typedef unsigned __int16 uint16_t;
19typedef unsigned __int32 uint32_t;
20typedef unsigned __int64 uint64_t;
21
22#else
23
24#include <stdint.h>
25
26#endif
27
28#endif // PACPUS_CSTDINT_H
29
Note: See TracBrowser for help on using the repository browser.