Skip to content

Commit

Permalink
build: set D_WIN32_WINNT=0x0601 for mingw miniupnpc
Browse files Browse the repository at this point in the history
This matches configure, and what we set for libevent etc.
  • Loading branch information
fanquake committed Sep 22, 2022
1 parent 8e2d93f commit 859644b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion depends/packages/miniupnpc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ $(package)_file_name=$(package)-$($(package)_version).tar.gz
$(package)_sha256_hash=888fb0976ba61518276fe1eda988589c700a3f2a69d71089260d75562afd3687
$(package)_patches=dont_leak_info.patch respect_mingw_cflags.patch

# Next time this package is updated, ensure that _WIN32_WINNT is still properly set.
# See discussion in https://github.com/bitcoin/bitcoin/pull/25964.
define $(package)_set_vars
$(package)_build_opts=CC="$($(package)_cc)"
$(package)_build_opts_darwin=LIBTOOL="$($(package)_libtool)"
$(package)_build_opts_mingw32=-f Makefile.mingw
$(package)_build_opts_mingw32=-f Makefile.mingw CFLAGS="$($(package)_cflags) -D_WIN32_WINNT=0x0601"
$(package)_build_env+=CFLAGS="$($(package)_cflags) $($(package)_cppflags)" AR="$($(package)_ar)"
endef

Expand Down

0 comments on commit 859644b

Please sign in to comment.