2023-11-11 19:42 UTC+0100 Phil Krylov (phil a t krylov.eu) (#333)

2023-11-11 19:42 UTC+0100 Phil Krylov (phil a t krylov.eu)
  * config/win/mingw.mk
  * utils/hbmk2/hbmk2.prg
    ! Use -D__USE_MINGW_ANSI_STDIO=0 to opt out of C99 printf emulation on
      MinGW-W64 10.0+.
This commit is contained in:
Phil Krylov
2023-11-11 19:59:23 +01:00
committed by GitHub
parent d54bb0e3f0
commit 2ed5940216
3 changed files with 21 additions and 0 deletions

View File

@@ -78,6 +78,13 @@ ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
ifeq ($(HB_COMPILER),mingw64)
# Newer MinGW-W64 versions (10+, IIRC) need this to opt out of C99 format
# string emulation and keep our format strings compatible among the
# different Windows compilers
CFLAGS += -D__USE_MINGW_ANSI_STDIO=0
endif
RC := $(HB_CCPATH)$(HB_CCPREFIX)windres
RC_OUT := -o$(subst x,x, )
RCFLAGS += -I. -I$(HB_HOST_INC) -O coff