mirror of
https://github.com/aap/librw.git
synced 2024-11-24 20:55:41 +00:00
- fixed dependency on GCC, please look at it
This commit is contained in:
parent
d03c22dcd6
commit
900541f21e
@ -8,6 +8,12 @@
|
||||
#include "rwplugin.h"
|
||||
#include "rwobjects.h"
|
||||
|
||||
#ifdef __linux__
|
||||
#define PACKED_STRUCT __attribute__((__packed__))
|
||||
#else
|
||||
#define PACKED_STRUCT
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace rw {
|
||||
@ -284,7 +290,7 @@ Image::getFilename(const char *name)
|
||||
#pragma pack(push)
|
||||
#pragma pack(1)
|
||||
#endif
|
||||
struct __attribute__((__packed__)) TGAHeader
|
||||
struct PACKED_STRUCT TGAHeader
|
||||
{
|
||||
int8 IDlen;
|
||||
int8 colorMapType;
|
||||
|
Loading…
Reference in New Issue
Block a user