initial
This commit is contained in:
29
vnproglib/c/include/vn/int.h
Normal file
29
vnproglib/c/include/vn/int.h
Normal file
@ -0,0 +1,29 @@
|
||||
#ifndef VNINT_H_INCLUDED
|
||||
#define VNINT_H_INCLUDED
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4820)
|
||||
#pragma warning(disable : 4255)
|
||||
#endif
|
||||
|
||||
/* Visual Studio 2008 and earlier do not include the stdint.h header file. */
|
||||
#if defined(_MSC_VER) && _MSC_VER <= 1500
|
||||
typedef signed __int8 int8_t;
|
||||
typedef signed __int16 int16_t;
|
||||
typedef signed __int32 int32_t;
|
||||
typedef signed __int64 int64_t;
|
||||
typedef unsigned __int8 uint8_t;
|
||||
typedef unsigned __int16 uint16_t;
|
||||
typedef unsigned __int32 uint32_t;
|
||||
typedef unsigned __int64 uint64_t;
|
||||
#else
|
||||
/* Just include the standard header file for integer types. */
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user