Fix Linux compile errors.

This commit is contained in:
Karl Robillard
2023-05-23 10:07:51 -04:00
parent af6d18829e
commit 18a0d3a42a
3 changed files with 2 additions and 7 deletions

View File

@@ -27,7 +27,7 @@
#include "UTF8.h"
#if defined(__CYGWIN__) || defined(__MACOS__)
#if defined(__CYGWIN__) || defined(__MACOS__) || defined(__linux)
typedef off_t off64_t;
#define fstat64 fstat
#define fseek64 fseek

View File

@@ -30,7 +30,7 @@ IGpDisplayDriver *GpDriver_CreateDisplayDriver_SDL_GL2(const GpDisplayDriverProp
IGpAudioDriver *GpDriver_CreateAudioDriver_SDL(const GpAudioDriverProperties &properties);
IGpInputDriver *GpDriver_CreateInputDriver_SDL2_Gamepad(const GpInputDriverProperties &properties);
#ifdef __MACOS__
#ifndef _WIN32
int main(int argc, char *argv[])
#else
SDLMAIN_DECLSPEC int SDL_main(int argc, char *argv[])

View File

@@ -3,13 +3,8 @@
#include "IGpClipboardContents.h"
#include "IGpThreadEvent.h"
#ifdef __MACOS__
#include <SDL.h>
#include <pthread.h>
#else
#include "SDL2/SDL.h"
#endif
#include <time.h>
#include <unistd.h>
#include <string>