7 Commits

Author SHA1 Message Date
Fabian Greffrath
f70d372907
fix all cppcheck 2.9 warnings (#771)
* fix most cppcheck 2.9 warnings

* simplify matters

* simplify a bit more

* simplify

* more/better fixes

* whitespace cosmetic

* use I_Realloc() in u_mapinfo.c
2022-11-23 07:51:01 +01:00
Roman Fomin
30c99dd1a5
old compilers support (#400)
* better support of C89 standart

* VC6 fixes

* __pragma attribute works for _MSC_VER > 1400

* use intptr_t for char*

* C89 has no designated initializers

* correct _MSC_VER versions

* fix check

* add stdint.h for old MSVC versions

Taken from https://github.com/mattn/gntp-send/blob/master/include/msinttypes/stdint.h

* add stdint.h to miniz.h

* make packaging work without Python

* fix window_position initialization

* replace PACKED_STRUCT with i_packed_start.h i_packed_end.h

Thus, we do not use variadic macros from C99.

* undo cmake install changes

* fix icon for VC6

* remove DESCRIPTION and HOMEPAGE_URL from project()

* remove i_packed_start.h and i_packed_end.h

* whitespace fixes

* rename PACKEDPREFIX->PACKED_PREFIX and PACKEDATTR->PACKED_SUFFIX

* MINGW check doesn't work this early

* add check for minimum cmake version for MINGW targets
2021-12-29 08:41:30 +01:00
Roman Fomin
841d53053e
Fix bmp2c.c MSVC build (#104)
* Fix bmp2c.c MSVC build

* Add missing EOL
2021-01-19 12:37:42 +01:00
Fabian Greffrath
cf1d1ea24d now fix cppcheck warnings in toolsrc code, yay! 2020-01-28 15:00:40 +01:00
Fabian Greffrath
f23229cb2c fix compiler warnings in toolsrc code 2020-01-28 14:45:51 +01:00
Fabian Greffrath
562f2e58e3 build but do not install the tools in the toolsrc directory 2020-01-28 14:18:10 +01:00
Fabian Greffrath
6fa9663ae8 add back the documentation
This adds back most relevant documentation from the WinMBF
binary and source code releases, file names converted to
lower case. Fixes #32.
2020-01-13 15:29:26 +01:00