CMakeLists.txt: check against c not c++ (CheckCXX -> CheckC etc)

BMP/EMF/PCX/TIF: use more portable packed attribute instead of
  pragma if not MSVC
CHANNEL: pass ptr not struct to `channel_copy_precalc()`
This commit is contained in:
gitlost 2024-05-27 20:55:04 +01:00
parent 3960dfdbfc
commit 0a00d04ccc
8 changed files with 94 additions and 71 deletions

View file

@ -37,7 +37,9 @@
extern "C" {
#endif
#pragma pack (1)
#ifdef _MSC_VER
#pragma pack(1)
#endif
typedef struct pcx_header {
uint8_t manufacturer;
@ -58,9 +60,11 @@ extern "C" {
uint16_t horiz_screen_size;
uint16_t vert_screen_size;
uint8_t filler[54];
} pcx_header_t;
} OUT_PACK pcx_header_t;
#pragma pack ()
#ifdef _MSC_VER
#pragma pack()
#endif
#ifdef __cplusplus
}