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:
parent
8980a32c20
commit
ea581e0909
@ -42,13 +42,22 @@
|
||||
#include <hidsdi.h>
|
||||
#include <setupapi.h>
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#if defined(__MINGW32__) && __GNUC__ < 5
|
||||
/* this prototype is missing from the mingw headers so we must add it
|
||||
or suffer linker errors. */
|
||||
|
||||
#ifndef HIDAPI
|
||||
#define HIDAPI
|
||||
#endif
|
||||
|
||||
#ifndef BOOLEAN
|
||||
#define BOOLEAN BOOL
|
||||
#endif
|
||||
|
||||
# ifdef __cplusplus
|
||||
extern "C" {
|
||||
# endif
|
||||
HIDAPI BOOL NTAPI HidD_SetOutputReport(HANDLE, PVOID, ULONG);
|
||||
HIDAPI BOOLEAN NTAPI HidD_SetOutputReport(HANDLE, PVOID, ULONG);
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user