Fix #ifdefs
[projects/chimara/chimara.git] / libchimara / gestalt.c
index bcd2113c6608381e1fedd5a3d9513f75f323de65..749bc43271aa2349d6b083be09ef9224eb9c8fc4 100644 (file)
@@ -1,4 +1,5 @@
 #include <stddef.h> /* Surprisingly, the only symbol needed is NULL */
+#include <config.h>
 #include "glk.h"
 
 /* Version of the Glk specification implemented by this library */
@@ -126,7 +127,11 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen)
                        return 1;
 
                case gestalt_Sound:
+#ifdef GSTREAMER_SOUND
                        return 1;
+#else
+                       return 0;
+#endif
                        
                /* Unsupported capabilities */
                case gestalt_SoundVolume: