mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-22 03:05:11 -04:00
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:
parent
3960dfdbfc
commit
0a00d04ccc
8 changed files with 94 additions and 71 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue