Port: Include config.h globally trough DEFAULT_INCLUDES
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 9 Oct 2015 19:50:25 +0000 (15:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 14 Oct 2015 20:15:19 +0000 (16:15 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
13 files changed:
configure.ac
converter/babeltrace-log.c
converter/babeltrace.c
include/babeltrace/compat/fcntl.h
include/babeltrace/compat/memstream.h
include/babeltrace/compat/send.h
include/babeltrace/compat/uuid.h
tests/lib/common.c
tests/lib/test_bitfield.c
tests/lib/test_bt_values.c
tests/lib/test_ctf_writer.c
tests/lib/test_seek.c
tests/utils/tap/tap.c

index 1ddfec0643ec95ee12ff8d214f3b8b7b29c6c93d..17a0e5e60af47dd43cc6b00f682672a0e88583ac 100644 (file)
@@ -229,9 +229,12 @@ PKG_CHECK_MODULES(GMODULE, [$pkg_modules])
 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)
 
index 55eabf2d1e39015910b4e1c1991627f51205c7ae..210bd09152a11b03907300c4c9b807abbad77983 100644 (file)
@@ -28,8 +28,6 @@
  * Depends on glibc 2.10 for getline().
  */
 
-#define _GNU_SOURCE
-#include <config.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
index 0ceca0c40081ec9c4a721a47b59c33b2eb526ec7..c521ac1516c459641b24ec476f4c425ad09fcfe4 100644 (file)
@@ -26,8 +26,6 @@
  * SOFTWARE.
  */
 
-#define _GNU_SOURCE
-#include <config.h>
 #include <babeltrace/babeltrace.h>
 #include <babeltrace/format.h>
 #include <babeltrace/context.h>
index e5232b4cb69c9e446baf9b4fec30140e8e5ff06e..47e5effc047619944599755eecabc22973527698 100644 (file)
@@ -27,8 +27,6 @@
  * SOFTWARE.
  */
 
-#include <config.h>
-
 #ifdef BABELTRACE_HAVE_POSIX_FALLOCATE
 
 #include <fcntl.h>
index d2a96cb5d37b57bc62ebcedaccb3bc90d107bd7d..8689aa702d8861018c3ca18b1f798ad18737abc6 100644 (file)
@@ -27,9 +27,6 @@
  * SOFTWARE.
  */
 
-#define _GNU_SOURCE
-#include <config.h>
-
 #ifdef BABELTRACE_HAVE_FMEMOPEN
 #include <stdio.h>
 
index 5654d95f4fe17e8a091a1053ae6b0a4c6415505b..98e1feb80e44f55550c7f4f352e99f960ab31aa9 100644 (file)
@@ -25,8 +25,6 @@
  * 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
index 65a72704b04f9712592c7ce8bc0235a2819bc187..369e47806e1471425e8629dbde2e611fbbaf4beb 100644 (file)
@@ -25,8 +25,6 @@
  * SOFTWARE.
  */
 
-#include <config.h>
-
 /* Includes final \0. */
 #define BABELTRACE_UUID_STR_LEN                37
 #define BABELTRACE_UUID_LEN            16
index 25bf735eb81ad6a3442f549d8edd43edff0120e9..60e2be04244a34b821d5e93bb14a57d85530e42d 100644 (file)
@@ -18,7 +18,6 @@
  * 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>
index 16e8a57e98d11d1fea36d910554ba94b75716de8..b14883df873ef574c5d26c83cb2f1a347bdb0d48 100644 (file)
@@ -19,7 +19,6 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
 #include <babeltrace/bitfield.h>
 #include <time.h>
 #include <stdlib.h>
index 284f9e68648f09ab100cbfb8b022e8467b95fe3b..4eb20ba51dbd4b80d4115dce22f246dab40410b4 100644 (file)
@@ -20,7 +20,6 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
 #include <babeltrace/values.h>
 #include <assert.h>
 #include <string.h>
index 6617412cd2130a358c33c733fa12f78c8dba4950..f15ad43784ac3d811bbf966523ebe24e2b1777d6 100644 (file)
@@ -19,7 +19,6 @@
  * 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>
index e9b23e5c0c00e980a30c623a0eeb76a055115dc1..de2c93424f9351dd6e353015b6136d7c76174a04 100644 (file)
@@ -18,7 +18,7 @@
  * 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>
index 8bf72f6fcde57dac97fd9673cb0df5efdf9b6b0c..08dfa658ca76e4e3cdca4ab1fca7f1c694b4d791 100644 (file)
@@ -24,7 +24,6 @@
  * SUCH DAMAGE.
  */
 
-#define _GNU_SOURCE
 #include <ctype.h>
 #include <stdarg.h>
 #include <stdio.h>
This page took 0.029727 seconds and 4 git commands to generate.