AC_SUBST(PACKAGE_LIBS)
LIBS="$LIBS $GMODULE_LIBS"
-PACKAGE_CFLAGS="$GMODULE_CFLAGS -Wall -Wformat -include config.h"
+PACKAGE_CFLAGS="$GMODULE_CFLAGS -Wall -Wformat"
AC_SUBST(PACKAGE_CFLAGS)
+DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir) -I\$(top_builddir)/include -include config.h"
+AC_SUBST(DEFAULT_INCLUDES)
+
babeltraceincludedir="${includedir}/babeltrace"
AC_SUBST(babeltraceincludedir)
* Depends on glibc 2.10 for getline().
*/
-#define _GNU_SOURCE
-#include <config.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
* SOFTWARE.
*/
-#define _GNU_SOURCE
-#include <config.h>
#include <babeltrace/babeltrace.h>
#include <babeltrace/format.h>
#include <babeltrace/context.h>
* SOFTWARE.
*/
-#include <config.h>
-
#ifdef BABELTRACE_HAVE_POSIX_FALLOCATE
#include <fcntl.h>
* SOFTWARE.
*/
-#define _GNU_SOURCE
-#include <config.h>
-
#ifdef BABELTRACE_HAVE_FMEMOPEN
#include <stdio.h>
* SOFTWARE.
*/
-#include <config.h>
-
/*
* This wrapper is used on platforms that have no way of ignoring SIGPIPE
* during a send(). Instead, we set the signal action to ignore. This is OK
* SOFTWARE.
*/
-#include <config.h>
-
/* Includes final \0. */
#define BABELTRACE_UUID_STR_LEN 37
#define BABELTRACE_UUID_LEN 16
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#include <babeltrace/context.h>
#include <babeltrace/iterator.h>
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#include <babeltrace/bitfield.h>
#include <time.h>
#include <stdlib.h>
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#include <babeltrace/values.h>
#include <assert.h>
#include <string.h>
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#include <babeltrace/ctf-writer/writer.h>
#include <babeltrace/ctf-writer/clock.h>
#include <babeltrace/ctf-writer/stream.h>
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
+
#include <babeltrace/context.h>
#include <babeltrace/iterator.h>
#include <babeltrace/ctf/iterator.h>
* SUCH DAMAGE.
*/
-#define _GNU_SOURCE
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>