apparently visual studio 2010's stdint.h isn't all it's cracked up to be.

This commit is contained in:
Ryan Pavlik
2011-04-28 10:22:14 -05:00
parent 51bf525b54
commit f853261785
4 changed files with 16 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ else()
list(APPEND SOURCES io_nix.c)
endif()
if(MSVC AND MSVC_VERSION LESS 1600)
if(MSVC)
list(APPEND API wiiuse_msvcstdint.h)
endif()

View File

@@ -37,8 +37,11 @@
#ifndef EVENTS_H_INCLUDED
#define EVENTS_H_INCLUDED
#if defined(_MSC_VER) && (_MSC_VER < 1600)
/* MS compilers of pre-VC2010 versions don't have stdint.h */
#if defined(_MSC_VER)
/* MS compilers of pre-VC2010 versions don't have stdint.h
* and I can't get VC2010's stdint.h to compile nicely in
* WiiUse
*/
#include "wiiuse_msvcstdint.h"
#else
#include <stdint.h>

View File

@@ -76,8 +76,11 @@
#define WCONST const
#endif
#if defined(_MSC_VER) && (_MSC_VER < 1600)
/* MS compilers of pre-VC2010 versions don't have stdint.h */
#if defined(_MSC_VER)
/* MS compilers of pre-VC2010 versions don't have stdint.h
* and I can't get VC2010's stdint.h to compile nicely in
* WiiUse
*/
#include "wiiuse_msvcstdint.h"
#else
#include <stdint.h>

View File

@@ -53,8 +53,11 @@
#include "definitions.h"
#if defined(_MSC_VER) && (_MSC_VER < 1600)
/* MS compilers of pre-VC2010 versions don't have stdint.h */
#if defined(_MSC_VER)
/* MS compilers of pre-VC2010 versions don't have stdint.h
* and I can't get VC2010's stdint.h to compile nicely in
* WiiUse
*/
#include "wiiuse_msvcstdint.h"
#else
#include <stdint.h>