handle the msvc stdint.h header differently (better)
This commit is contained in:
@@ -29,8 +29,8 @@ else()
|
|||||||
list(APPEND SOURCES io_nix.c)
|
list(APPEND SOURCES io_nix.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC AND MSVC_VERSION LESS 1600)
|
||||||
list(APPEND API ../msvc-stdint/stdint.h)
|
list(APPEND API wiiuse_msvcstdint.h)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(wiiuse SHARED ${SOURCES} ${API})
|
add_library(wiiuse SHARED ${SOURCES} ${API})
|
||||||
|
|||||||
@@ -76,7 +76,12 @@
|
|||||||
#define WCONST const
|
#define WCONST const
|
||||||
#endif
|
#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 */
|
/* led bit masks */
|
||||||
#define WIIMOTE_LED_NONE 0x00
|
#define WIIMOTE_LED_NONE 0x00
|
||||||
|
|||||||
@@ -51,7 +51,12 @@
|
|||||||
|
|
||||||
#include "definitions.h"
|
#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