mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 05:59:16 +00:00
Some fixes to make the ever-complaining gcc 4.7 happy (hopefully)
This commit is contained in:
parent
86bcecf5d2
commit
38501dca35
3 changed files with 11 additions and 12 deletions
|
@ -139,6 +139,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "math.h"
|
||||
#include "FileAPI.h"
|
||||
|
||||
#ifdef BBGE_BUILD_LINUX
|
||||
# include <sys/types.h>
|
||||
# include <stdint.h>
|
||||
#endif
|
||||
|
||||
// dumb win32 includes/defines cleanup
|
||||
#undef GetCharWidth
|
||||
|
||||
|
|
|
@ -240,8 +240,6 @@ public:
|
|||
BB_MAKE_WRITE_OP(uint64);
|
||||
BB_MAKE_WRITE_OP(float);
|
||||
BB_MAKE_WRITE_OP(double);
|
||||
BB_MAKE_WRITE_OP(int);
|
||||
BB_MAKE_WRITE_OP(unsigned int);
|
||||
|
||||
ByteBuffer &operator<<(bool value)
|
||||
{
|
||||
|
@ -272,8 +270,6 @@ public:
|
|||
BB_MAKE_READ_OP(uint64);
|
||||
BB_MAKE_READ_OP(float);
|
||||
BB_MAKE_READ_OP(double);
|
||||
BB_MAKE_READ_OP(int);
|
||||
BB_MAKE_READ_OP(unsigned int);
|
||||
|
||||
ByteBuffer &operator>>(bool &value)
|
||||
{
|
||||
|
|
|
@ -74,16 +74,14 @@ bool GLFont::Create (const char *file_name, int tex, bool loadTexture)
|
|||
vfclose(fh);
|
||||
#endif
|
||||
|
||||
ByteBuffer::uint32 dummy;
|
||||
|
||||
// Read the header from file
|
||||
header.tex = tex;
|
||||
bb >> dummy; // skip tex field
|
||||
bb >> header.tex_width;
|
||||
bb >> header.tex_height;
|
||||
bb >> header.start_char;
|
||||
bb >> header.end_char;
|
||||
bb >> dummy; // skip chars field
|
||||
bb.skipRead(4); // skip tex field
|
||||
header.tex_width = bb.read<ByteBuffer::uint32>();
|
||||
header.tex_height = bb.read<ByteBuffer::uint32>();
|
||||
header.start_char = bb.read<ByteBuffer::uint32>();
|
||||
header.end_char = bb.read<ByteBuffer::uint32>();
|
||||
bb.skipRead(4); // skip chars field
|
||||
|
||||
//Allocate space for character array
|
||||
num_chars = header.end_char - header.start_char + 1;
|
||||
|
|
Loading…
Reference in a new issue