Commit graph

37 commits

Author SHA1 Message Date
Sam V
a370af08e6 Convert all source files to UTF without BOM 2022-12-17 13:32:43 +01:00
Anchur
2c84881c07 Update source file encoding to UTF-8 2022-12-16 22:52:07 +08:00
FranticDreamer
4721651f95 Add a Note for Deprecation of Clamp Macro 2022-05-05 04:51:36 +03:00
Sam V
5bd7db9bbd Remove MAX_PATH definition
#59
2021-12-07 17:05:01 +01:00
Sam V
2b9b75ac97 Wrap braces after case label
#84
2021-11-29 20:55:01 +01:00
Sam V
7258d55f06 Silence MSVC compiler warnings C26495, C26451 and C26812
#91
2021-11-28 21:50:12 +01:00
Sam V
f5fc7fb5ad Remove unused types
Resolves #88
2021-11-28 19:44:03 +01:00
Sam V
6d5cf9fbeb Remove platform-specific headers from Platform.h, use PlatformHeaders.h for code that needs it
Resolves #59
2021-11-28 19:38:42 +01:00
Sam V
08755342d0 Format all files and add clang-format configuration file
Resolves #84
2021-11-28 16:54:48 +01:00
Sam V
c5b1932a86 Remove all remaining references to BOOL
Rework all uses of BOOL member variables to use bool instead
Change save game system to use bool for FIELD_BOOLEAN
Remove BOOL typedefs
#59
2021-11-19 20:40:36 +01:00
Sam V
7a56b3a50e Remove obsolete Linux FALSE and TRUE constants
#59
2021-11-19 13:45:33 +01:00
Sam V
bce3b78653 Replace all uses of TRUE with true
#59
2021-11-19 13:45:16 +01:00
Sam V
99e0a0ed2c Replace uses of FALSE with false
#59
2021-11-19 13:43:33 +01:00
Sam V
a2d7db621d Rework all uses of BYTE to use byte instead
#59
2021-11-18 21:57:21 +01:00
Sam V
44a3e2f397 Rework all uses of ULONG to use unsigned int instead
#59
2021-11-18 21:55:07 +01:00
Sam V
5f45923e1b Remove preprocessor definitions handled in Platform.h from makefiles, remove obsolete function alias on Linux
Resolves #61
#59
2021-11-18 21:49:29 +01:00
Sam V
de5c98ce1b Include climits & cstdarg unconditionally in Platform.h
#59
2021-11-18 21:38:37 +01:00
Sam V
87bdd89ce3 Use vsnprintf instead of _vsnprintf
Resolves #61
2021-11-18 21:28:12 +01:00
Sam V
287caae1c9 Move platform-specific code from interface.h to interface.cpp, clean up implementation
#59
2021-11-18 21:18:30 +01:00
Sam V
c2699feb31 Remove archtypes.h, rely on Platform.h to define certain types and include headers
#59
2021-11-18 20:33:58 +01:00
Sam V
26b2d4b114 Include cstddef in Platform.h, remove offsetof definition from eiface (provided by new header)
#59
2021-11-18 20:27:59 +01:00
Sam V
262027b24e Include cctype in Platform.h, always include enums.h in APIProxy.h, remove unnecessary string.h include
#59
2021-11-18 20:20:32 +01:00
Sam V
667e0aea57 Use WIN32 preprocessor macro instead of _WIN32
Resolves #62
2021-11-18 20:02:04 +01:00
Sam V
91cf9de3b4 Use snprintf everywhere instead of _snprintf
Resolves #61
2021-11-18 19:55:00 +01:00
Sam V
0a3c17b92f Convert all include guards to pragma once
Resolves #50
2021-11-18 19:17:53 +01:00
Sam V
2c911f96bc Rework uses of Windows API types in input code to use standard types
#59
2021-11-18 18:46:42 +01:00
Sam V
4b7226e44b Define platform-agnostic types for common structures
Resolves #56
2021-11-18 17:50:02 +01:00
Sam V
8656016bc1 Disable as many Windows.h dependencies as possible
Resolves #49
2021-11-18 15:28:30 +01:00
Solokiller
fee74cbf90 Move clamp macro to Platform.h 2021-03-16 21:39:28 +01:00
Solokiller
003f0cd387 Remove duplicate SND_CHANGE_PITCH constant, move ARRAYSIZE definition to Platform.h 2021-03-16 21:05:51 +01:00
Solokiller
23436202bc Move primitive types aliases to Platform.h when possible 2021-03-16 20:01:08 +01:00
Solokiller
66bcc2a40b Define NOMINMAX to disable min & max macros defined in Windows header 2021-03-10 13:53:35 +01:00
Sam
c7d054f131 Define macros mapping functions to Linux equivalents 2020-02-13 14:51:18 +01:00
Sam
f604b90f9a Refactor dllexport macro definitions 2018-09-03 10:47:51 +02:00
Sam
0681c401d1 Ensure V_min & V_max are defined on Windows, define in Platform.h only 2018-09-03 10:26:06 +02:00
Joël Troch
39524f609d Add fixes for Linux (GCC 8) 2018-09-03 00:01:23 +02:00
Sam
1c7c0c2348 Refactor platform specific code handling 2018-09-02 22:46:08 +02:00