Commit 30b1d5ec authored by Scott Wheeler's avatar Scott Wheeler

Clean up a little of the semantics on the check -- always define a value;

just define it to 0 or 1.

svn path=/trunk/kdemultimedia/juk/; revision=366423
parent e6e627c3
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "artsplayer.h" #include "artsplayer.h"
#ifdef HAVE_ARTS #if HAVE_ARTS
#include <kdebug.h> #include <kdebug.h>
#include <kconfig.h> #include <kconfig.h>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <config.h> #include <config.h>
#ifdef HAVE_ARTS #if HAVE_ARTS
#include "player.h" #include "player.h"
......
...@@ -13,6 +13,7 @@ else ...@@ -13,6 +13,7 @@ else
build_arts="no" build_arts="no"
LIB_ARTS="" LIB_ARTS=""
ARTS_CFLAGS="" ARTS_CFLAGS=""
AC_DEFINE(HAVE_ARTS, 0, [no arts support in juk])
fi fi
AC_SUBST(LIB_ARTS) AC_SUBST(LIB_ARTS)
......
...@@ -48,7 +48,7 @@ static Player *createPlayer(int system = ArtsBackend) ...@@ -48,7 +48,7 @@ static Player *createPlayer(int system = ArtsBackend)
Player *p = 0; Player *p = 0;
#if defined(HAVE_ARTS) && defined(HAVE_GSTREAMER) #if HAVE_ARTS && HAVE_GSTREAMER
switch(system) { switch(system) {
case ArtsBackend: case ArtsBackend:
p = new ArtsPlayer; p = new ArtsPlayer;
...@@ -62,11 +62,11 @@ static Player *createPlayer(int system = ArtsBackend) ...@@ -62,11 +62,11 @@ static Player *createPlayer(int system = ArtsBackend)
} }
#else #else
Q_UNUSED(system) Q_UNUSED(system)
#ifdef HAVE_ARTS #if HAVE_ARTS
p = new ArtsPlayer; p = new ArtsPlayer;
#endif #endif
#ifdef HAVE_GSTREAMER #if HAVE_GSTREAMER
p = new GStreamerPlayer; p = new GStreamerPlayer;
#else #else
#warning No Player Backend Available #warning No Player Backend Available
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment