* Fix silly bug

This commit is contained in:
Phillip Stephens 2014-06-02 20:09:40 -07:00
parent 05db171ac4
commit cc71bec5d7
11 changed files with 23 additions and 13 deletions

View File

@ -104,7 +104,7 @@ HEADERS += \
$$PWD/include/Athena/ZQuestFileWriter.hpp
win32:HEADERS += \
$$PWD/Athena/include/win32_largefilewrapper.h
$$PWD/include/win32_largefilewrapper.h
OTHER_FILES += \
.travis.yml

View File

@ -36,7 +36,7 @@ namespace io
*/
class ALTTPFileReader : protected BinaryReader
{
BINARYREADER_BASE
BINARYREADER_BASE();
public:
/*! \brief This constructor takes an existing buffer to read from.

View File

@ -292,9 +292,9 @@ protected:
} // Athena
#ifndef BINARYREADER_BASE
#define BINARYREADER_BASE \
#define BINARYREADER_BASE() \
private: \
typedef Athena::io::BinaryReader base;
typedef Athena::io::BinaryReader base
#endif // BINARYREADER_BASE

View File

@ -20,8 +20,18 @@
#include "Athena/Utility.hpp"
#include <iostream>
#if !defined(__PRETTY_FUNCTION__) && defined(_WIN32)
#define __PRETTY_FUNCTION__ __FUNCSIG__
#ifndef __PRETTY_FUNCTION__
# ifdef __FUNCSIG__
# define __PRETTY_FUNCTION__ __FUNCSIG__
# elif defined(__FUNCTION__)
# define __PRETTY_FUNCTION__ __FUNCTION__
# elif defined(__FUNC__)
# define __PRETTY_FUNCTION__ __FUNCTION__
# elif defined(__func__)
# define __PRETTY_FUNCTION__ __FUNCTION__
# else
# define __PRETTY_FUNCTION__ "<unkown>"
# endif
#endif
#ifndef aDebug

View File

@ -35,7 +35,7 @@ namespace io
*/
class MCFileReader : protected BinaryReader
{
BINARYREADER_BASE
BINARYREADER_BASE();
public:
/*!
* \brief This constructor takes an existing buffer to read from.

View File

@ -25,7 +25,7 @@ namespace io
{
class SkywardSwordFileReader : public BinaryReader
{
BINARYREADER_BASE
BINARYREADER_BASE();
public:
SkywardSwordFileReader(Uint8* data, Uint64 length);

View File

@ -30,7 +30,7 @@ namespace io
class SpriteFileReader : public BinaryReader
{
BINARYREADER_BASE;
BINARYREADER_BASE();
public:
SpriteFileReader(Uint8* data, Uint64 length);
SpriteFileReader(const std::string& filepath);

View File

@ -38,7 +38,7 @@ namespace io
*/
class WiiSaveReader : protected BinaryReader
{
BINARYREADER_BASE
BINARYREADER_BASE();
public:
/*! \brief This constructor takes an existing buffer to read from.
*

View File

@ -30,7 +30,7 @@ namespace io
*/
class ZQuestFileReader : protected BinaryReader
{
BINARYREADER_BASE
BINARYREADER_BASE();
public:
/*!

View File

@ -1,7 +1,7 @@
#ifndef WIN32_LARGEFILEWRAPPER_H
#define WIN32_LARGEFILEWRAPPER_H
#ifdef _WIN32
#if defined(_WIN32) && defined(_MSC_VER)
#include <stdio.h>
#ifdef __cplusplus
extern "C" {

View File

@ -1,7 +1,7 @@
#include "win32_largefilewrapper.h"
#include <stdio.h>
#ifdef _WIN32
#if defined(_WIN32) && defined(_MSC_VER)
int fseeko64(FILE* fp, off64_t offset, int whence)
{
return _fseeki64(fp, offset, whence);