Andrew Cottrell - 2022-02-01

Have you looked at the rest of the code for where WXMSW is used to see if under Windows for wxWidgets you need this defined? Does the resulting build in the devel31 directory run successfully and work without glitches/crashes etc?

Also can you create a patch and add it to a followup post as per the following WIKI entry:
http://wiki.codeblocks.org/index.php/Creating_a_patch_to_submit_(Patch_Tracker)

BTW I have not tried to build CB using Cygwin, but have supplied patches to get the Cygwin debugger working.

Below is info on defines that may be of some use depending on how familiar you are with the different PC GCC compilers and also defines:

When working with defines with GCC on a PC in order to ensure that the change works with other PC based GCC systems (Cygwin, MinGW, TDM etc etc) you can look at one of the following pages to get the appropriate define to use:
https://blog.kowalczyk.info/article/j/guide-to-predefined-macros-in-c-compilers-gcc-clang-msvc-etc..html
https://renenyffenegger.ch/notes/development/languages/C-C-plus-plus/preprocessor/macros/predefined/environment

The main pre processeor defines that I have used in the past are:
CYGWIN
_WIN32 (and WIN32 on some systems)
_WIN64 (and WIN64 on some systems)
MINGW32
MINGW64
linux
GNUC
_MSC_VER

There are others that I have used from time to time, but these make up say 98% of the uses.