Added support for stdint.h being available in DevStudio 2010
(Thanks to Ketil Wright for bringing this to our attention)
This commit is contained in:
parent
2a821a52ae
commit
dd07a525a6
@ -13,6 +13,11 @@
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#if _MSC_VER >= 1400
|
||||
// stdint.h was introduced with DevStudio 2010
|
||||
#define EXV_HAVE_STDINT_H 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <process.h> header file. */
|
||||
#define EXV_HAVE_PROCESS_H 1
|
||||
|
||||
|
||||
@ -13,6 +13,11 @@
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#if _MSC_VER >= 1400
|
||||
// stdint.h was introduced with DevStudio 2010
|
||||
#define EXV_HAVE_STDINT_H 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <process.h> header file. */
|
||||
#define EXV_HAVE_PROCESS_H 1
|
||||
|
||||
|
||||
@ -48,17 +48,11 @@
|
||||
#include <utility>
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
|
||||
#ifdef EXV_HAVE_STDINT_H
|
||||
# include <stdint.h>
|
||||
#endif
|
||||
|
||||
// MSVC macro to convert a string to a wide string
|
||||
#ifdef EXV_UNICODE_PATH
|
||||
# define EXV_WIDEN(t) L ## t
|
||||
#endif
|
||||
|
||||
// MSVC doesn't provide C99 types, but it has MS specific variants
|
||||
#ifdef _MSC_VER
|
||||
#elif defined(_MSC_VER)
|
||||
// MSVC (before 2010) doesn't provide C99 types, but it has MS specific variants
|
||||
typedef unsigned __int8 uint8_t;
|
||||
typedef unsigned __int16 uint16_t;
|
||||
typedef unsigned __int32 uint32_t;
|
||||
@ -69,6 +63,11 @@ typedef __int32 int32_t;
|
||||
typedef __int64 int64_t;
|
||||
#endif
|
||||
|
||||
// MSVC macro to convert a string to a wide string
|
||||
#ifdef EXV_UNICODE_PATH
|
||||
# define EXV_WIDEN(t) L ## t
|
||||
#endif
|
||||
|
||||
/*!
|
||||
@brief Macro to make calls to member functions through a pointer more readable.
|
||||
See the C++ FAQ LITE, item
|
||||
|
||||
Loading…
Reference in New Issue
Block a user