From 7d1df4c097f38cf974b7adb054ce3db12e1dd9f1 Mon Sep 17 00:00:00 2001 From: mittorn Date: Sat, 21 Apr 2018 13:39:55 +0000 Subject: [PATCH] Add string.h, fix decals with unsigned char --- common/port.h | 1 + engine/common/filesystem.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/port.h b/common/port.h index b87a9e7a..a0de7c40 100644 --- a/common/port.h +++ b/common/port.h @@ -42,6 +42,7 @@ GNU General Public License for more details. #include #include #include + #include #if defined(__APPLE__) #include diff --git a/engine/common/filesystem.h b/engine/common/filesystem.h index b08f62b1..8b981f7f 100644 --- a/engine/common/filesystem.h +++ b/engine/common/filesystem.h @@ -80,9 +80,9 @@ typedef struct int filepos; // file offset in WAD int disksize; // compressed or uncompressed int size; // uncompressed - char type; // TYP_* - char attribs; // file attribs - char img_type; // IMG_* + signed char type; // TYP_* + signed char attribs; // file attribs + signed char img_type; // IMG_* char pad; char name[WAD3_NAMELEN]; // must be null terminated } dlumpinfo_t;