Skip to content

Commit

Permalink
Merge pull request #5 from awson/master
Browse files Browse the repository at this point in the history
Build hidapi against latest mingw-w64 headers
  • Loading branch information
mossheim authored Feb 13, 2017
2 parents 6666789 + 23ab8e2 commit 7ec3943
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 3 additions & 4 deletions hidapi_parser/hidapi_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@

#ifdef _WIN32
#include <windows.h>
#ifdef __MINGW32__
#include "../windows/hidsdi.h"
#else
// for MinGW < 5.3 include locally provided "../windows hidsdi.h" rather
// than #include <hidsdi.h>:
// #include "../windows/hidsdi.h"
#include <hidsdi.h>
#endif
#endif

#include "hidapi_parser.h"

Expand Down
9 changes: 4 additions & 5 deletions windows/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
********************************************************/

#include <windows.h>

#ifdef __MINGW32__
#include "./hidsdi.h"
#else
// for MinGW < 5.3 include locally provided "../windows hidsdi.h" rather
// than #include <hidsdi.h>:
// #include "./hidsdi.h"
#include <hidsdi.h>
#endif

#ifndef _NTDEF_
typedef LONG NTSTATUS;
Expand All @@ -35,6 +33,7 @@ typedef LONG NTSTATUS;
#ifdef __MINGW32__
#include <ntdef.h>
#include <winbase.h>
#include <devpropdef.h>
#endif

#ifdef __CYGWIN__
Expand Down

0 comments on commit 7ec3943

Please sign in to comment.