mirror of https://github.com/encounter/SDL.git
hidapi/windows/hid.c: comment out ntdef.h include after windows.h.
not necessary and can cause redefinition errors in some toolchains.
This commit is contained in:
parent
b11c75e9f4
commit
cf7d64f266
|
@ -22,10 +22,7 @@
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#ifndef _NTDEF_
|
#if 0 /* can cause redefinition errors on some toolchains */
|
||||||
typedef LONG NTSTATUS;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
#include <ntdef.h>
|
#include <ntdef.h>
|
||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
|
@ -35,6 +32,11 @@ typedef LONG NTSTATUS;
|
||||||
#include <ntdef.h>
|
#include <ntdef.h>
|
||||||
#define _wcsdup wcsdup
|
#define _wcsdup wcsdup
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* */
|
||||||
|
|
||||||
|
#ifndef _NTDEF_
|
||||||
|
typedef LONG NTSTATUS;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* SDL C runtime functions */
|
/* SDL C runtime functions */
|
||||||
#include "../../SDL_internal.h"
|
#include "../../SDL_internal.h"
|
||||||
|
@ -906,7 +908,6 @@ int HID_API_EXPORT_CALL HID_API_CALL hid_get_indexed_string(hid_device *dev, int
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
|
HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
|
||||||
{
|
{
|
||||||
return (wchar_t*)dev->last_error_str;
|
return (wchar_t*)dev->last_error_str;
|
||||||
|
@ -928,7 +929,6 @@ HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
|
||||||
unsigned short ProductID = 0x3f;
|
unsigned short ProductID = 0x3f;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef PICPGM
|
#ifdef PICPGM
|
||||||
unsigned short VendorID = 0x04d8;
|
unsigned short VendorID = 0x04d8;
|
||||||
unsigned short ProductID = 0x0033;
|
unsigned short ProductID = 0x0033;
|
||||||
|
|
Loading…
Reference in New Issue