X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fgestalt.c;h=ebeb765f20a9f59d00697fa5758d345f1f6f33c1;hb=8dc72fc5acf19793c8edb5d69ac2d55f7c5a7510;hp=bcd2113c6608381e1fedd5a3d9513f75f323de65;hpb=b026b1ac697815f2bd67e11a8718478dc1d3aed6;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/gestalt.c b/libchimara/gestalt.c index bcd2113..ebeb765 100644 --- a/libchimara/gestalt.c +++ b/libchimara/gestalt.c @@ -1,4 +1,5 @@ #include /* Surprisingly, the only symbol needed is NULL */ +#include #include "glk.h" /* Version of the Glk specification implemented by this library */ @@ -125,12 +126,17 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen) case gestalt_GraphicsTransparency: return 1; + /* Capabilities supported if compiled with GStreamer */ case gestalt_Sound: + case gestalt_SoundVolume: + case gestalt_SoundNotify: +#ifdef GSTREAMER_SOUND return 1; +#else + return 0; +#endif /* Unsupported capabilities */ - case gestalt_SoundVolume: - case gestalt_SoundNotify: case gestalt_SoundMusic: /* Selector not supported */ default: