mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
gst_private.h: make sure gst_private.h is included before glib.h
For the reason outlined at the beginning of gst_private.h (inline functions in glib may need the g_log_domain variable). Also include gst_private.h before using any G_OS_* defines, esp. in plugin loader.
This commit is contained in:
parent
745b35e7d4
commit
087aa6ced4
8 changed files with 20 additions and 10 deletions
|
@ -33,6 +33,10 @@
|
|||
* functions */
|
||||
extern const char g_log_domain_gstreamer[];
|
||||
|
||||
#ifdef __G_LIB_H__
|
||||
#warning "gst_private.h must be included before glib.h"
|
||||
#endif
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -49,6 +49,9 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "gst_private.h"
|
||||
|
||||
#include <glib/gstdio.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_DIRENT_H
|
||||
|
@ -60,7 +63,6 @@
|
|||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "gst_private.h"
|
||||
#include "glib-compat-private.h"
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <gst/gst_private.h>
|
||||
|
||||
#ifndef G_OS_WIN32
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
@ -33,7 +35,6 @@
|
|||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
#include <gst/gst_private.h>
|
||||
#include <gst/gstconfig.h>
|
||||
|
||||
#include <gst/gstpoll.h>
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
%{
|
||||
#include "../gst_private.h"
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../gst_private.h"
|
||||
#include "../gst-i18n-lib.h"
|
||||
|
||||
#include "../gstconfig.h"
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
%{
|
||||
#include "../gst_private.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <glib/gprintf.h>
|
||||
|
||||
#include "../gst_private.h"
|
||||
|
||||
#include "types.h"
|
||||
#include "../gstinfo.h"
|
||||
#include "../gsturi.h"
|
||||
|
|
|
@ -146,9 +146,10 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <gst/gst_private.h>
|
||||
|
||||
#include "gstbasesink.h"
|
||||
#include <gst/gstmarshal.h>
|
||||
#include <gst/gst_private.h>
|
||||
#include <gst/gst-i18n-lib.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_base_sink_debug);
|
||||
|
|
|
@ -26,10 +26,10 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include <gst/gst_private.h>
|
||||
#include <gst/gst.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
|
|
@ -60,8 +60,9 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include "gsttypefindelement.h"
|
||||
#include "gst/gst_private.h"
|
||||
|
||||
#include "gsttypefindelement.h"
|
||||
#include "gst/gst-i18n-lib.h"
|
||||
#include "gst/base/gsttypefindhelper.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue