gstconfig.h: want deprecation warnings if GST_DISABLE_DEPRECATED is *set*
authorTim-Philipp Müller <tim@centricular.com>
Thu, 15 Feb 2018 12:09:31 +0000 (12:09 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 15 Feb 2018 12:11:41 +0000 (12:11 +0000)
Fix inverted logic. If GST_DISABLE_DEPRECATED is undefined,
we don't want warnings about deprecated API, and if it's
defined we do want warnings.

gst/gstconfig.h.in

index 943b917..0192228 100644 (file)
  * and thus have to be exposed in installed headers. But please
  * do *not* use them in other projects. Instead, use G_DEPRECATED
  * or define your own wrappers around it. */
-#ifdef GST_DISABLE_DEPRECATED
+#ifndef GST_DISABLE_DEPRECATED
 #define GST_DEPRECATED GST_EXPORT
 #define GST_DEPRECATED_FOR(f) GST_EXPORT
 #else