Browse Source

Add string.h, fix decals with unsigned char

pull/2/head
mittorn 7 years ago
parent
commit
7d1df4c097
  1. 1
      common/port.h
  2. 6
      engine/common/filesystem.h

1
common/port.h

@ -42,6 +42,7 @@ GNU General Public License for more details.
#include <dlfcn.h> #include <dlfcn.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <string.h>
#if defined(__APPLE__) #if defined(__APPLE__)
#include <sys/syslimits.h> #include <sys/syslimits.h>

6
engine/common/filesystem.h

@ -80,9 +80,9 @@ typedef struct
int filepos; // file offset in WAD int filepos; // file offset in WAD
int disksize; // compressed or uncompressed int disksize; // compressed or uncompressed
int size; // uncompressed int size; // uncompressed
char type; // TYP_* signed char type; // TYP_*
char attribs; // file attribs signed char attribs; // file attribs
char img_type; // IMG_* signed char img_type; // IMG_*
char pad; char pad;
char name[WAD3_NAMELEN]; // must be null terminated char name[WAD3_NAMELEN]; // must be null terminated
} dlumpinfo_t; } dlumpinfo_t;

Loading…
Cancel
Save