Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix linux build
  • Loading branch information
erorcun committed May 22, 2020
1 parent a9f332f commit c993e99e0086aae50357c8ffa180de54396ede92
Showing with 10 additions and 9 deletions.
  1. +8 −6 premake5.lua
  2. +2 −3 src/audio/oal/stream.cpp
@@ -195,12 +195,6 @@ project "re3"


filter "platforms:*oal" filter "platforms:*oal"
defines { "AUDIO_OAL" } defines { "AUDIO_OAL" }
includedirs { "openal-soft/include" }
includedirs { "libsndfile/include" }
includedirs { "mpg123/include" }
libdirs { "openal-soft/libs/Win32" }
libdirs { "libsndfile/lib" }
libdirs { "mpg123/lib" }


filter {} filter {}
if(os.getenv("GTA_III_RE_DIR")) then if(os.getenv("GTA_III_RE_DIR")) then
@@ -214,6 +208,14 @@ project "re3"
characterset ("MBCS") characterset ("MBCS")
targetextension ".exe" targetextension ".exe"


filter "platforms:win*oal"
includedirs { "openal-soft/include" }
includedirs { "libsndfile/include" }
includedirs { "mpg123/include" }
libdirs { "openal-soft/libs/Win32" }
libdirs { "libsndfile/lib" }
libdirs { "mpg123/lib" }

filter "platforms:linux*oal" filter "platforms:linux*oal"
links { "openal", "mpg123", "sndfile", "pthread" } links { "openal", "mpg123", "sndfile", "pthread" }


@@ -8,12 +8,11 @@
typedef long ssize_t; typedef long ssize_t;
#pragma comment( lib, "libsndfile-1.lib" ) #pragma comment( lib, "libsndfile-1.lib" )
#pragma comment( lib, "libmpg123.lib" ) #pragma comment( lib, "libmpg123.lib" )
#else
#include "crossplatform.h"
#endif #endif
#include <sndfile.h> #include <sndfile.h>
#include <mpg123.h> #include <mpg123.h>
#ifndef _WIN32
#include "crossplatform.h"
#endif


class CSndFile : public IDecoder class CSndFile : public IDecoder
{ {

0 comments on commit c993e99

Please sign in to comment.