mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Make compile with MSVC6 (no C99 compatibility)
This commit is contained in:
@ -36,7 +36,12 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#ifdef _MSC_VER
|
||||
#include <windows.h>
|
||||
#include "stdint_msvc.h"
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
typedef struct pcx_header {
|
||||
uint8_t manufacturer;
|
||||
@ -57,7 +62,11 @@ extern "C" {
|
||||
uint16_t horiz_screen_size;
|
||||
uint16_t vert_screen_size;
|
||||
uint8_t filler[54];
|
||||
} __attribute__((__packed__ )) pcx_header_t;
|
||||
}
|
||||
#ifdef __GNUC__
|
||||
__attribute__((__packed__ ))
|
||||
#endif
|
||||
pcx_header_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user