handle the msvc stdint.h header differently (better)

This commit is contained in:
Ryan Pavlik
2011-04-27 15:12:08 -05:00
parent 4d6b5a5b05
commit b949546225
4 changed files with 14 additions and 4 deletions

View File

@@ -29,8 +29,8 @@ else()
list(APPEND SOURCES io_nix.c)
endif()
if(MSVC)
list(APPEND API ../msvc-stdint/stdint.h)
if(MSVC AND MSVC_VERSION LESS 1600)
list(APPEND API wiiuse_msvcstdint.h)
endif()
add_library(wiiuse SHARED ${SOURCES} ${API})

View File

@@ -76,7 +76,12 @@
#define WCONST const
#endif
#include <stdint.h>
#if defined(_MSC_VER) && (_MSC_VER < 1600)
/* MS compilers of pre-VC2010 versions don't have stdint.h */
#include <wiiuse_msvcstdint.h>
#else
#include <stdint.h>
#endif
/* led bit masks */
#define WIIMOTE_LED_NONE 0x00

View File

@@ -51,7 +51,12 @@
#include "definitions.h"
#include <stdint.h>
#if defined(_MSC_VER) && (_MSC_VER < 1600)
/* MS compilers of pre-VC2010 versions don't have stdint.h */
#include <wiiuse_msvcstdint.h>
#else
#include <stdint.h>
#endif
/********************
*