Skip to content

Commit

Permalink
library: Update GCC build for MinGW 7.0.0
Browse files Browse the repository at this point in the history
Same includes for 32-bit as for 64-bit.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
  • Loading branch information
tormodvolden committed Feb 27, 2023
1 parent f0fdc47 commit 56bb429
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 24 deletions.
10 changes: 2 additions & 8 deletions libusb/src/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,9 @@
#include <richedit.h>
#include <conio.h>
#include <ctype.h>

#ifdef __GNUC__
#if defined(_WIN64)
#include <cfgmgr32.h>
#else
#include <ddk/cfgmgr32.h>
#endif
#else
#include <cfgmgr32.h>

#ifndef __GNUC__
#define strlwr(p) _strlwr(p)
#endif

Expand Down
10 changes: 2 additions & 8 deletions libusb/src/install_filter_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@
#define INITGUID

#include <windows.h>
#include <cfgmgr32.h>

#ifdef __GNUC__
#if defined(_WIN64)
#include <cfgmgr32.h>
#else
#include <ddk/cfgmgr32.h>
#endif
#else
#include <cfgmgr32.h>
#ifndef __GNUC__
#define strlwr(p) _strlwr(p)
#endif

Expand Down
10 changes: 2 additions & 8 deletions libusb/src/registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifdef __GNUC__
#if defined(_WIN64)
#include <cfgmgr32.h>
#else
#include <ddk/cfgmgr32.h>
#endif
#else
#include <cfgmgr32.h>

#ifndef __GNUC__
#define strlwr(p) _strlwr(p)
#endif

Expand Down

0 comments on commit 56bb429

Please sign in to comment.