From 426a0ed527af6e8e6f16cf598794e9d0a8ddf4a2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 20 Oct 2020 01:47:47 +0200 Subject: [PATCH] Remove HAVE_W32API_H definition and checks All still supported versions of MinGW/Cygwin provide w32api.h file, so there is no need to test for it. This allows to simplify the code, but also remove the definition of HAVE_W32API_H from bake- and makefiles and this, in turn, allows to get rid of extra flags in MinGW format entirely, as we don't support gcc 2.95 for which they were originally needed neither. --- build/bakefiles/config.bkl | 13 - .../bakefiles/wxpresets/presets/wx_win32.bkl | 1 - build/cmake/setup.cmake | 1 - build/cmake/setup.h.in | 3 - build/msw/config.gcc | 5 - build/msw/makefile.gcc | 329 +++++++++--------- build/msw/makefile.vc | 4 +- configure | 39 ++- configure.in | 1 - demos/bombs/makefile.gcc | 15 +- demos/forty/makefile.gcc | 15 +- demos/fractal/makefile.gcc | 15 +- demos/life/makefile.gcc | 11 +- demos/makefile.gcc | 3 +- demos/poem/makefile.gcc | 15 +- include/wx/msw/gccpriv.h | 10 - samples/access/makefile.gcc | 15 +- samples/animate/makefile.gcc | 15 +- samples/archive/makefile.gcc | 15 +- samples/artprov/makefile.gcc | 15 +- samples/aui/makefile.gcc | 15 +- samples/calendar/makefile.gcc | 15 +- samples/caret/makefile.gcc | 15 +- samples/clipboard/makefile.gcc | 15 +- samples/collpane/makefile.gcc | 15 +- samples/combo/makefile.gcc | 15 +- samples/config/makefile.gcc | 15 +- samples/console/makefile.gcc | 15 +- samples/dataview/makefile.gcc | 15 +- samples/debugrpt/makefile.gcc | 15 +- samples/dialogs/makefile.gcc | 15 +- samples/dialup/makefile.gcc | 15 +- samples/display/makefile.gcc | 15 +- samples/dll/makefile.gcc | 22 +- samples/dnd/makefile.gcc | 11 +- samples/docview/makefile.gcc | 15 +- samples/dragimag/makefile.gcc | 15 +- samples/drawing/makefile.gcc | 15 +- samples/erase/makefile.gcc | 15 +- samples/event/makefile.gcc | 15 +- samples/except/makefile.gcc | 15 +- samples/exec/makefile.gcc | 11 +- samples/font/makefile.gcc | 11 +- samples/fswatcher/makefile.gcc | 15 +- samples/grid/makefile.gcc | 11 +- samples/help/makefile.gcc | 11 +- samples/htlbox/makefile.gcc | 15 +- samples/html/about/makefile.gcc | 15 +- samples/html/help/makefile.gcc | 15 +- samples/html/helpview/makefile.gcc | 15 +- samples/html/makefile.gcc | 3 +- samples/html/printing/makefile.gcc | 15 +- samples/html/test/makefile.gcc | 17 +- samples/html/virtual/makefile.gcc | 15 +- samples/html/widget/makefile.gcc | 15 +- samples/html/zip/makefile.gcc | 17 +- samples/image/makefile.gcc | 15 +- samples/internat/makefile.gcc | 15 +- samples/ipc/makefile.gcc | 51 ++- samples/joytest/makefile.gcc | 15 +- samples/keyboard/makefile.gcc | 15 +- samples/layout/makefile.gcc | 15 +- samples/listctrl/makefile.gcc | 15 +- samples/makefile.gcc | 3 +- samples/mdi/makefile.gcc | 11 +- samples/mediaplayer/makefile.gcc | 15 +- samples/memcheck/makefile.gcc | 15 +- samples/menu/makefile.gcc | 11 +- samples/minimal/makefile.gcc | 15 +- samples/nativdlg/makefile.gcc | 15 +- samples/notebook/makefile.gcc | 15 +- samples/oleauto/makefile.gcc | 15 +- samples/opengl/cube/makefile.gcc | 17 +- samples/opengl/isosurf/makefile.gcc | 15 +- samples/opengl/makefile.gcc | 3 +- samples/opengl/penguin/makefile.gcc | 25 +- samples/opengl/pyramid/makefile.gcc | 15 +- samples/ownerdrw/makefile.gcc | 15 +- samples/popup/makefile.gcc | 15 +- samples/power/makefile.gcc | 15 +- samples/preferences/makefile.gcc | 15 +- samples/printing/makefile.gcc | 15 +- samples/propgrid/makefile.gcc | 15 +- samples/regtest/makefile.gcc | 15 +- samples/render/makefile.gcc | 22 +- samples/ribbon/makefile.gcc | 15 +- samples/richtext/makefile.gcc | 15 +- samples/sashtest/makefile.gcc | 15 +- samples/scroll/makefile.gcc | 15 +- samples/secretstore/makefile.gcc | 15 +- samples/shaped/makefile.gcc | 15 +- samples/sockets/makefile.gcc | 43 ++- samples/sound/makefile.gcc | 15 +- samples/splash/makefile.gcc | 15 +- samples/splitter/makefile.gcc | 15 +- samples/statbar/makefile.gcc | 15 +- samples/stc/makefile.gcc | 15 +- samples/svg/makefile.gcc | 15 +- samples/taborder/makefile.gcc | 15 +- samples/taskbar/makefile.gcc | 15 +- samples/taskbarbutton/makefile.gcc | 15 +- samples/text/makefile.gcc | 11 +- samples/thread/makefile.gcc | 15 +- samples/toolbar/makefile.gcc | 15 +- samples/treectrl/makefile.gcc | 15 +- samples/treelist/makefile.gcc | 15 +- samples/typetest/makefile.gcc | 15 +- samples/uiaction/makefile.gcc | 15 +- samples/validate/makefile.gcc | 15 +- samples/vscroll/makefile.gcc | 15 +- samples/webview/makefile.gcc | 15 +- samples/widgets/makefile.gcc | 15 +- samples/wizard/makefile.gcc | 15 +- samples/wrapsizer/makefile.gcc | 15 +- samples/xrc/makefile.gcc | 15 +- samples/xti/makefile.gcc | 11 +- setup.h.in | 3 - setup.h_vms | 3 - tests/benchmarks/makefile.gcc | 35 +- tests/makefile.gcc | 56 ++- utils/emulator/src/makefile.gcc | 15 +- utils/execmon/makefile.gcc | 15 +- utils/helpview/src/makefile.gcc | 15 +- utils/hhp2cached/makefile.gcc | 15 +- utils/ifacecheck/src/makefile.gcc | 15 +- utils/makefile.gcc | 3 +- utils/screenshotgen/src/makefile.gcc | 15 +- utils/wxrc/makefile.gcc | 11 +- 128 files changed, 901 insertions(+), 1302 deletions(-) diff --git a/build/bakefiles/config.bkl b/build/bakefiles/config.bkl index bf295d7ec2..587f2b35b6 100644 --- a/build/bakefiles/config.bkl +++ b/build/bakefiles/config.bkl @@ -509,15 +509,6 @@ it if SHARED=1 unless you know what you are doing. - - - -fvtable-thunks - - $(GCCFLAGS) -DHAVE_W32API_H diff --git a/build/bakefiles/wxpresets/presets/wx_win32.bkl b/build/bakefiles/wxpresets/presets/wx_win32.bkl index 97e6416064..45ba5c5167 100644 --- a/build/bakefiles/wxpresets/presets/wx_win32.bkl +++ b/build/bakefiles/wxpresets/presets/wx_win32.bkl @@ -241,7 +241,6 @@