Fixed on windows.

This commit is contained in:
aap
2015-01-20 21:49:57 +01:00
parent 62c6fe006e
commit a528142254
4 changed files with 17 additions and 6 deletions

View File

@@ -297,8 +297,10 @@ Image::getFilename(const char *name)
// TGA I/O
//
//#pragma pack(push)
//#pragma pack(1)
#ifndef RW_PS2
#pragma pack(push)
#pragma pack(1)
#endif
struct __attribute__((__packed__)) TGAHeader
{
int8 IDlen;
@@ -312,7 +314,9 @@ struct __attribute__((__packed__)) TGAHeader
uint8 depth;
uint8 descriptor;
};
//#pragma pack(push)
#ifndef RW_PS2
#pragma pack(push)
#endif
Image*
readTGA(const char *afilename)