handle the msvc stdint.h header differently (better)
This commit is contained in:
@@ -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})
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
/********************
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user