Skip to content

Commit

Permalink
define WIN32_LEAN_AND_MEAN on mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
jwt27 committed Dec 31, 2023
1 parent d11f5b3 commit e7135d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions script/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,14 @@ else
fi
rm -f hello.c 2> /dev/null

# Make sure MSYS2 Perl is used on mingw-w64 (see issue #27)
case $(uname) in
MINGW*) export PERL=/usr/bin/perl ;;
MINGW*)
# Make sure MSYS2 Perl is used on mingw-w64 (see issue #27)
export PERL=/usr/bin/perl
# Required to build gcc on recent mingw-w64 (see issue #41)
CFLAGS+=' -DWIN32_LEAN_AND_MEAN'
CXXFLAGS+=' -DWIN32_LEAN_AND_MEAN'
;;
esac

install_files()
Expand Down

0 comments on commit e7135d2

Please sign in to comment.