edje-multisense: Don't fail if edje-multisense is not enabled
authorDaniel Willmann <d.willmann@samsung.com>
Mon, 28 Jan 2013 16:05:49 +0000 (16:05 +0000)
committerDaniel Willmann <daniel@totalueberwachung.de>
Mon, 28 Jan 2013 16:05:49 +0000 (16:05 +0000)
Ifdef all the functions that reference ecore_audio so this file can be
compiled without ecore_audio enabled.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
SVN revision: 83384

src/lib/edje/edje_multisense.c

index d6ad283bdb2aa6922f914cca44de9c7ba210296c..3e89e261ca8c5bf2d959bed6f393677e53beba98 100644 (file)
@@ -1,6 +1,8 @@
 #include "edje_private.h"
-#include "Ecore_Audio.h"
+
+#ifdef ENABLE_MULTISENSE
 #include <sndfile.h>
+#include "Ecore_Audio.h"
 
 static Ecore_Audio_Object *out = NULL;
 
@@ -66,6 +68,7 @@ eet_snd_file_tell(Ecore_Audio_Object *in)
 
    return vf->offset;
 }
+#endif
 
 Eina_Bool
 _edje_multisense_internal_sound_sample_play(Edje *ed, const char *sample_name, const double speed EINA_UNUSED)