mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
Change which macro is used to check for Windows targets
This fixes a false-positive on macOS that was caused by the macro "#define TARGET_OS_WIN32 0" Change-Id: I1fcfb19b5aae4f63f00b9500094d619c4f7eea4b
This commit is contained in:
parent
9dce0c3258
commit
1adadc943d
2 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ EXTRADEPS := libucl.a libmicrotar.a
|
|||
|
||||
CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -)
|
||||
|
||||
ifeq ($(findstring WIN32,$(CPPDEFINES)),WIN32)
|
||||
ifeq ($(findstring __WIN32__,$(CPPDEFINES)),__WIN32__)
|
||||
# TODO: support Windows
|
||||
else
|
||||
ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ EXTRADEPS :=
|
|||
|
||||
CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -)
|
||||
|
||||
ifeq ($(findstring WIN32,$(CPPDEFINES)),WIN32)
|
||||
ifeq ($(findstring __WIN32__,$(CPPDEFINES)),__WIN32__)
|
||||
LDOPTS += -lsetupapi
|
||||
# optional libusb support (needed for WinUSB and libusbK drivers)
|
||||
ifeq ($(findstring MINGW,$(CPPDEFINES)),MINGW)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue