FreeBSD fixes

This commit is contained in:
Phillip Stephens 2016-10-27 15:44:50 -08:00
parent 39c1e735e2
commit 31f259c1e1
5 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ list(APPEND CORE_EXTRA src/win32_largefilewrapper.c include/win32_largefilewrapp
src/athena/FileWriterWin32.cpp src/athena/FileReaderWin32.cpp) src/athena/FileWriterWin32.cpp src/athena/FileReaderWin32.cpp)
else() else()
list(APPEND CORE_EXTRA src/athena/FileWriter.cpp src/athena/FileReader.cpp) list(APPEND CORE_EXTRA src/athena/FileWriter.cpp src/athena/FileReader.cpp)
if(APPLE OR GEKKO) if(APPLE OR GEKKO OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
list(APPEND CORE_EXTRA src/osx_largefilewrapper.c include/osx_largefilewrapper.h) list(APPEND CORE_EXTRA src/osx_largefilewrapper.c include/osx_largefilewrapper.h)
if(GEKKO) if(GEKKO)
list(APPEND CORE_EXTRA src/gekko_support.c include/gekko_support.h) list(APPEND CORE_EXTRA src/gekko_support.c include/gekko_support.h)

View File

@ -1,7 +1,7 @@
#ifndef OSX_LARGEFILEWRAPPER_H #ifndef OSX_LARGEFILEWRAPPER_H
#define OSX_LARGEFILEWRAPPER_H #define OSX_LARGEFILEWRAPPER_H
#if defined(__APPLE__) || defined(GEKKO) #if defined(__APPLE__) || defined(GEKKO) || defined(__FreeBSD__)
#include <stdio.h> #include <stdio.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -1,6 +1,6 @@
#include "athena/FileReader.hpp" #include "athena/FileReader.hpp"
#if __APPLE__ #if __APPLE__ || __FreeBSD__
#include "osx_largefilewrapper.h" #include "osx_largefilewrapper.h"
#elif GEKKO #elif GEKKO
#include "gekko_support.h" #include "gekko_support.h"

View File

@ -1,6 +1,6 @@
#include "athena/FileWriter.hpp" #include "athena/FileWriter.hpp"
#if __APPLE__ #if __APPLE__ || __FreeBSD__
#include "osx_largefilewrapper.h" #include "osx_largefilewrapper.h"
#elif GEKKO #elif GEKKO
#include "gekko_support.h" #include "gekko_support.h"

View File

@ -1,4 +1,4 @@
#if defined(__APPLE__) || defined(GEKKO) #if defined(__APPLE__) || defined(GEKKO) || defined(__FreeBSD__)
#include "osx_largefilewrapper.h" #include "osx_largefilewrapper.h"
#include <stdio.h> #include <stdio.h>