mirror of https://github.com/libAthena/athena.git
FreeBSD fixes
This commit is contained in:
parent
39c1e735e2
commit
31f259c1e1
|
@ -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)
|
||||||
|
|
|
@ -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" {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue