make it compilable under openbsd

This commit is contained in:
David Carlier 2016-12-09 16:21:54 +00:00
parent 665ed62d8e
commit 09c1330a0e
3 changed files with 5 additions and 2 deletions

View file

@ -108,6 +108,9 @@ include_directories(${VORBISFILE_INCLUDE_DIR})
find_package(OpenAL REQUIRED)
include_directories(${OPENAL_INCLUDE_DIR})
find_package(X11 REQUIRED)
include_directories(${X11_INCLUDE_DIR})
if (SDL2)
# skip SDL2main
if(APPLE OR WIN32)

View file

@ -17,7 +17,7 @@
#define _CRT_SECURE_NO_WARNINGS
#endif
#if defined(__APPLE__) || defined(IOAPI_NO_64)
#if defined(__APPLE__) || defined(IOAPI_NO_64) || defined(__OpenBSD__)
// In darwin and perhaps other BSD variants off_t is a 64 bit value, hence no need for specific 64 bit functions
#define FOPEN_FUNC(filename, mode) fopen(filename, mode)
#define FTELLO_FUNC(stream) ftello(stream)

View file

@ -41,7 +41,7 @@ typedef enum {
CPUID_SSE2 = 0x00080, // Streaming SIMD Extensions 2
CPUID_SSE3 = 0x00100, // Streaming SIMD Extentions 3 aka Prescott's New Instructions
CPUID_ALTIVEC = 0x00200, // AltiVec
} cpuid_t;
} cpuidSimd_t;
typedef enum {
AXIS_SIDE,