mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Copy irrlichtmt to <root>/irr/
This commit is contained in:
parent
a7908da968
commit
f638482fba
349 changed files with 109124 additions and 0 deletions
25
irr/include/irrpack.h
Normal file
25
irr/include/irrpack.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright (C) 2007-2012 Nikolaus Gebhardt
|
||||
// This file is part of the "Irrlicht Engine".
|
||||
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
||||
|
||||
// include this file right before the data structures to be 1-aligned
|
||||
// and add to each structure the PACK_STRUCT define just like this:
|
||||
// struct mystruct
|
||||
// {
|
||||
// ...
|
||||
// } PACK_STRUCT;
|
||||
// Always include the irrunpack.h file right after the last type declared
|
||||
// like this, and do not put any other types with different alignment
|
||||
// in between!
|
||||
|
||||
// byte-align structures
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable : 4103)
|
||||
#pragma pack(push, packing)
|
||||
#pragma pack(1)
|
||||
#define PACK_STRUCT
|
||||
#elif defined(__GNUC__)
|
||||
#define PACK_STRUCT __attribute__((packed))
|
||||
#else
|
||||
#error compiler not supported
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue