FreeBSD fixes

keep-around/0eb7fb20e8ec47eea3c9ed47a2b91a4923050d1a
Phillip Stephens 7 years ago
parent 39c1e735e2
commit 31f259c1e1
  1. 2
      CMakeLists.txt
  2. 2
      include/osx_largefilewrapper.h
  3. 2
      src/athena/FileReader.cpp
  4. 2
      src/athena/FileWriter.cpp
  5. 2
      src/osx_largefilewrapper.c

@ -30,7 +30,7 @@ list(APPEND CORE_EXTRA src/win32_largefilewrapper.c include/win32_largefilewrapp
src/athena/FileWriterWin32.cpp src/athena/FileReaderWin32.cpp)
else()
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)
if(GEKKO)
list(APPEND CORE_EXTRA src/gekko_support.c include/gekko_support.h)

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

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

@ -1,6 +1,6 @@
#include "athena/FileWriter.hpp"
#if __APPLE__
#if __APPLE__ || __FreeBSD__
#include "osx_largefilewrapper.h"
#elif GEKKO
#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 <stdio.h>

Loading…
Cancel
Save