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:
Vencislav Atanasov 2026-03-30 19:34:05 +03:00 committed by Solomon Peachy
parent 9dce0c3258
commit 1adadc943d
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ EXTRADEPS := libucl.a libmicrotar.a
CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -) CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -)
ifeq ($(findstring WIN32,$(CPPDEFINES)),WIN32) ifeq ($(findstring __WIN32__,$(CPPDEFINES)),__WIN32__)
# TODO: support Windows # TODO: support Windows
else else
ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE) ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)

View file

@ -18,7 +18,7 @@ EXTRADEPS :=
CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -) CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -)
ifeq ($(findstring WIN32,$(CPPDEFINES)),WIN32) ifeq ($(findstring __WIN32__,$(CPPDEFINES)),__WIN32__)
LDOPTS += -lsetupapi LDOPTS += -lsetupapi
# optional libusb support (needed for WinUSB and libusbK drivers) # optional libusb support (needed for WinUSB and libusbK drivers)
ifeq ($(findstring MINGW,$(CPPDEFINES)),MINGW) ifeq ($(findstring MINGW,$(CPPDEFINES)),MINGW)