]> git.jsancho.org Git - lugaru.git/commitdiff
Drop unnecessary USE_OPENAL and USE_SDL defines
authorRémi Verschelde <rverschelde@gmail.com>
Sun, 20 Nov 2016 22:02:58 +0000 (23:02 +0100)
committerRémi Verschelde <rverschelde@gmail.com>
Sun, 20 Nov 2016 22:19:06 +0000 (23:19 +0100)
CMakeLists.txt
Source/openal_wrapper.cpp

index 29f70ebc0d75c3ce11e49e4de5b16194790445d3..a9e16b10313287371b8f47839021ebb81e8d2fa7 100644 (file)
@@ -179,13 +179,13 @@ endif(WIN32)
 target_link_libraries(lugaru ${LUGARU_LIBS})
 
 if(WIN32)
-    add_definitions(-DUSE_OPENAL=1 -DUSE_SDL=1 -DBinIO_STDINT_HEADER=<stdint.h>)
+    add_definitions(-DBinIO_STDINT_HEADER=<stdint.h>)
     if(MINGW)
         # An alternative would be to use _WIN32 consistently instead of WIN32
         add_definitions(-DWIN32)
     endif(MINGW)
 else(WIN32)
-    add_definitions(-DPLATFORM_LINUX=1 -DPLATFORM_UNIX=1 -DUSE_OPENAL=1 -DUSE_SDL=1 -DBinIO_STDINT_HEADER=<stdint.h>)
+    add_definitions(-DPLATFORM_LINUX=1 -DPLATFORM_UNIX=1 -DBinIO_STDINT_HEADER=<stdint.h>)
 endif(WIN32)
 
 
index cc7ffc55443f433009fd62b5ed50381c7ad5b660..79be832f787dec547c6e23058216dca763e0e21e 100644 (file)
@@ -19,8 +19,6 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 
-#if USE_OPENAL
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -692,6 +690,3 @@ extern "C" void PlayStreamEx(int chan, OPENAL_STREAM *sptr, OPENAL_DSPUNIT *dsp,
         channels[chan] = OPENAL_Stream_PlayEx(OPENAL_FREE, sptr, dsp, startpaused);
     }
 }
-
-#endif
-