tests/glheaders: use #if for platform selection
authorMatthew Waters <matthew@centricular.com>
Wed, 3 Jan 2018 12:09:20 +0000 (23:09 +1100)
committerMatthew Waters <matthew@centricular.com>
Wed, 3 Jan 2018 12:09:20 +0000 (23:09 +1100)
GST_GL_HAVE_* are always defined to 0 or 1 so an #ifdef will always
succeed which is not the intention here.

tests/check/libs/gstglheaders.c

index 1e4470d..287956e 100644 (file)
@@ -64,7 +64,7 @@
 #include <gst/gl/egl/gstglmemoryegl.h>
 #endif
 
-#ifdef GST_GL_HAVE_PLATFORM_GLX
+#if GST_GL_HAVE_PLATFORM_GLX
 #include <gst/gl/x11/gstgldisplay_x11.h>
 #include <gst/gl/x11/gstglwindow_x11.h>
 #endif