Make compile with MSVC6 (no C99 compatibility)

This commit is contained in:
Harald Oehlmann 2016-07-28 10:32:46 +02:00
parent 804ca24aca
commit 3939a1ae54
9 changed files with 118 additions and 15 deletions

View file

@ -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
}