Commit 5deab8d3 authored by James Andrewartha's avatar James Andrewartha Committed by Tim-Philipp Müller

Make sure gstprivate.h and/or config.h are always included first, otherwise...

Make sure gstprivate.h and/or config.h are always included first, otherwise some of our defines (like _FILE_OFFSET_BI...

Original commit message from CVS:
Patch by: James Andrewartha <trs80 at tartarus uwa edu au>
* gst/gst.c:
* gst/gstbus.c:
* gst/gstclock.c:
* gst/gstevent.c:
* gst/gstformat.c:
* gst/gstmessage.c:
* gst/gstparse.c:
* gst/gstquery.c:
* gst/gstutils.c:
* gst/parse/Makefile.am:
* libs/gst/base/gstadapter.c:
* libs/gst/base/gstbasesrc.c:
* libs/gst/base/gstpushsrc.c:
* libs/gst/base/gsttypefindhelper.c:
* plugins/elements/gstfakesrc.c:
* plugins/elements/gstidentity.c:
Make sure gstprivate.h and/or config.h are
always included first, otherwise some of our
defines (like _FILE_OFFSET_BITS) might be
redefined in the system headers. Fixes build
on opensolaris (#340016).
parent 4ceea3e4
2006-05-04 Tim-Philipp Müller <tim at centricular dot net>
Patch by: James Andrewartha <trs80 at tartarus uwa edu au>
* gst/gst.c:
* gst/gstbus.c:
* gst/gstclock.c:
* gst/gstevent.c:
* gst/gstformat.c:
* gst/gstmessage.c:
* gst/gstparse.c:
* gst/gstquery.c:
* gst/gstutils.c:
* gst/parse/Makefile.am:
* libs/gst/base/gstadapter.c:
* libs/gst/base/gstbasesrc.c:
* libs/gst/base/gstpushsrc.c:
* libs/gst/base/gsttypefindhelper.c:
* plugins/elements/gstfakesrc.c:
* plugins/elements/gstidentity.c:
Make sure gstprivate.h and/or config.h are
always included first, otherwise some of our
defines (like _FILE_OFFSET_BITS) might be
redefined in the system headers. Fixes build
on opensolaris (#340016).
2006-05-04 Wim Taymans <wim@fluendo.com> 2006-05-04 Wim Taymans <wim@fluendo.com>
* docs/libs/gstreamer-libs-sections.txt: * docs/libs/gstreamer-libs-sections.txt:
......
...@@ -101,10 +101,10 @@ ...@@ -101,10 +101,10 @@
* Last reviewed on 2005-11-23 (0.9.5) * Last reviewed on 2005-11-23 (0.9.5)
*/ */
#include "gst_private.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include "gst_private.h"
#include "gst-i18n-lib.h" #include "gst-i18n-lib.h"
#include <locale.h> /* for LC_ALL */ #include <locale.h> /* for LC_ALL */
......
...@@ -66,13 +66,13 @@ ...@@ -66,13 +66,13 @@
* Last reviewed on 2006-03-12 (0.10.5) * Last reviewed on 2006-03-12 (0.10.5)
*/ */
#include "gst_private.h"
#include <errno.h> #include <errno.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#include <sys/types.h> #include <sys/types.h>
#include "gst_private.h"
#include "gstinfo.h" #include "gstinfo.h"
#include "gstbus.h" #include "gstbus.h"
......
...@@ -102,9 +102,9 @@ ...@@ -102,9 +102,9 @@
* Last reviewed on 2006-03-09 (0.10.4) * Last reviewed on 2006-03-09 (0.10.4)
*/ */
#include <time.h>
#include "gst_private.h" #include "gst_private.h"
#include <time.h>
#include "gstclock.h" #include "gstclock.h"
#include "gstinfo.h" #include "gstinfo.h"
......
...@@ -75,9 +75,9 @@ ...@@ -75,9 +75,9 @@
* Last reviewed on 2006-01-24 (0.10.2) * Last reviewed on 2006-01-24 (0.10.2)
*/ */
#include <string.h> /* memcpy */
#include "gst_private.h" #include "gst_private.h"
#include <string.h> /* memcpy */
#include "gstinfo.h" #include "gstinfo.h"
#include "gstevent.h" #include "gstevent.h"
......
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
* operations. * operations.
*/ */
#include <string.h>
#include "gst_private.h" #include "gst_private.h"
#include <string.h>
#include "gstformat.h" #include "gstformat.h"
static GStaticMutex mutex = G_STATIC_MUTEX_INIT; static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
......
...@@ -48,9 +48,9 @@ ...@@ -48,9 +48,9 @@
* Last reviewed on 2005-11-09 (0.9.4) * Last reviewed on 2005-11-09 (0.9.4)
*/ */
#include <string.h> /* memcpy */
#include "gst_private.h" #include "gst_private.h"
#include <string.h> /* memcpy */
#include "gsterror.h" #include "gsterror.h"
#include "gstenumtypes.h" #include "gstenumtypes.h"
#include "gstinfo.h" #include "gstinfo.h"
......
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
* gst-launch utillity. * gst-launch utillity.
*/ */
#include <string.h>
#include "gst_private.h" #include "gst_private.h"
#include <string.h>
#include "gstparse.h" #include "gstparse.h"
#include "gstinfo.h" #include "gstinfo.h"
......
...@@ -58,9 +58,9 @@ ...@@ -58,9 +58,9 @@
* *
* Last reviewed on 2006-02-14 (0.10.4) * Last reviewed on 2006-02-14 (0.10.4)
*/ */
#include <string.h>
#include "gst_private.h" #include "gst_private.h"
#include <string.h>
#include "gstquery.h" #include "gstquery.h"
#include "gstvalue.h" #include "gstvalue.h"
#include "gstenumtypes.h" #include "gstenumtypes.h"
......
...@@ -28,10 +28,10 @@ ...@@ -28,10 +28,10 @@
* When defining own plugins, use the GST_BOILERPLATE ease gobject creation. * When defining own plugins, use the GST_BOILERPLATE ease gobject creation.
*/ */
#include "gst_private.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "gst_private.h"
#include "gstghostpad.h" #include "gstghostpad.h"
#include "gstutils.h" #include "gstutils.h"
#include "gstinfo.h" #include "gstinfo.h"
......
...@@ -19,6 +19,21 @@ noinst_HEADERS = grammar.tab.h ...@@ -19,6 +19,21 @@ noinst_HEADERS = grammar.tab.h
grammar.tab.c grammar.tab.h: grammar.y grammar.tab.c grammar.tab.h: grammar.y
$(BISON_PATH) -d -v -p_gst_parse__yy $(srcdir)/grammar.y -o grammar.tab.c $(BISON_PATH) -d -v -p_gst_parse__yy $(srcdir)/grammar.y -o grammar.tab.c
mv grammar.tab.c grammar.tab_tmp.c; \
echo '#ifdef HAVE_CONFIG_H' > grammar.tab_tmp2.c; \
echo '#include <config.h>' >> grammar.tab_tmp2.c; \
echo '#endif' >> grammar.tab_tmp2.c; \
cat grammar.tab_tmp.c >> grammar.tab_tmp2.c; \
rm grammar.tab_tmp.c; \
mv grammar.tab_tmp2.c grammar.tab.c
lex._gst_parse_yy.c: parse.l grammar.tab.h lex._gst_parse_yy.c: parse.l grammar.tab.h
$(FLEX_PATH) -P_gst_parse_yy $^ $(FLEX_PATH) -P_gst_parse_yy $^
mv lex._gst_parse_yy.c lex._gst_parse_yy_tmp.c; \
echo '#ifdef HAVE_CONFIG_H' > lex._gst_parse_yy_tmp2.c; \
echo '#include <config.h>' >> lex._gst_parse_yy_tmp2.c; \
echo '#endif' >> lex._gst_parse_yy_tmp2.c; \
cat lex._gst_parse_yy_tmp.c >> lex._gst_parse_yy_tmp2.c; \
rm lex._gst_parse_yy_tmp.c; \
mv lex._gst_parse_yy_tmp2.c lex._gst_parse_yy.c
...@@ -92,9 +92,9 @@ ...@@ -92,9 +92,9 @@
* Last reviewed on 2006-03-07 (0.10.4). * Last reviewed on 2006-03-07 (0.10.4).
*/ */
#include <string.h>
#include "gstadapter.h" #include "gstadapter.h"
#include <string.h>
/* default size for the assembled data buffer */ /* default size for the assembled data buffer */
#define DEFAULT_SIZE 16 #define DEFAULT_SIZE 16
......
...@@ -165,13 +165,13 @@ ...@@ -165,13 +165,13 @@
* </refsect2> * </refsect2>
*/ */
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdlib.h>
#include <string.h>
#include "gstbasesrc.h" #include "gstbasesrc.h"
#include "gsttypefindhelper.h" #include "gsttypefindhelper.h"
#include <gst/gstmarshal.h> #include <gst/gstmarshal.h>
......
...@@ -44,13 +44,13 @@ ...@@ -44,13 +44,13 @@
* base class. * base class.
*/ */
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdlib.h>
#include <string.h>
#include "gstpushsrc.h" #include "gstpushsrc.h"
#include "gsttypefindhelper.h" #include "gsttypefindhelper.h"
#include <gst/gstmarshal.h> #include <gst/gstmarshal.h>
......
...@@ -31,13 +31,13 @@ ...@@ -31,13 +31,13 @@
* typefinding in push mode from a chain function. * typefinding in push mode from a chain function.
*/ */
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdlib.h>
#include <string.h>
#include "gsttypefindhelper.h" #include "gsttypefindhelper.h"
static gint static gint
......
...@@ -47,13 +47,13 @@ ...@@ -47,13 +47,13 @@
* </refsect2> * </refsect2>
*/ */
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdlib.h>
#include <string.h>
#include "gstfakesrc.h" #include "gstfakesrc.h"
#include <gst/gstmarshal.h> #include <gst/gstmarshal.h>
......
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
*/ */
#include <stdlib.h>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdlib.h>
#include "../../gst/gst-i18n-lib.h" #include "../../gst/gst-i18n-lib.h"
#include "gstidentity.h" #include "gstidentity.h"
#include <gst/gstmarshal.h> #include <gst/gstmarshal.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment