Try to support more mingw versions for wiiuse build.

This function has been already added to the header in mingw-w64 5.1 and newer.
This commit is contained in:
deve 2015-12-04 10:47:56 +01:00
parent 8980a32c20
commit ea581e0909

View File

@ -42,13 +42,22 @@
#include <hidsdi.h> #include <hidsdi.h>
#include <setupapi.h> #include <setupapi.h>
#ifdef __MINGW32__ #if defined(__MINGW32__) && __GNUC__ < 5
/* this prototype is missing from the mingw headers so we must add it /* this prototype is missing from the mingw headers so we must add it
or suffer linker errors. */ or suffer linker errors. */
#ifndef HIDAPI
#define HIDAPI
#endif
#ifndef BOOLEAN
#define BOOLEAN BOOL
#endif
# ifdef __cplusplus # ifdef __cplusplus
extern "C" { extern "C" {
# endif # endif
HIDAPI BOOL NTAPI HidD_SetOutputReport(HANDLE, PVOID, ULONG); HIDAPI BOOLEAN NTAPI HidD_SetOutputReport(HANDLE, PVOID, ULONG);
# ifdef __cplusplus # ifdef __cplusplus
} }
# endif # endif