mirror of
https://github.com/aap/librw.git
synced 2024-12-01 08:05:42 +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 "rwplugin.h"
|
||||||
#include "rwobjects.h"
|
#include "rwobjects.h"
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
#define PACKED_STRUCT __attribute__((__packed__))
|
||||||
|
#else
|
||||||
|
#define PACKED_STRUCT
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
namespace rw {
|
namespace rw {
|
||||||
@ -284,7 +290,7 @@ Image::getFilename(const char *name)
|
|||||||
#pragma pack(push)
|
#pragma pack(push)
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
#endif
|
#endif
|
||||||
struct __attribute__((__packed__)) TGAHeader
|
struct PACKED_STRUCT TGAHeader
|
||||||
{
|
{
|
||||||
int8 IDlen;
|
int8 IDlen;
|
||||||
int8 colorMapType;
|
int8 colorMapType;
|
||||||
|
Loading…
Reference in New Issue
Block a user