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