Skip to content

Commit

Permalink
Revert "Ensure config.h is included by using CPPFLAGS"
Browse files Browse the repository at this point in the history
This reverts commit 8a03376.

The patch needs to be split up and the gdbus/ changes were bogus
compared to the original commit message.

Conflicts:
	Makefile.am
	Makefile.obexd
	profiles/cyclingspeed/cyclingspeed.c
	profiles/heartrate/heartrate.c
	src/error.c
  • Loading branch information
Johan Hedberg committed Dec 7, 2012
1 parent 7ff3126 commit b8779d2
Show file tree
Hide file tree
Showing 212 changed files with 850 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ EXTRA_DIST += doc/adapter-api.txt doc/device-api.txt doc/profile-api.txt \

AM_CFLAGS += @DBUS_CFLAGS@ @GLIB_CFLAGS@

AM_CPPFLAGS = -include $(top_builddir)/config.h -I$(builddir)/lib \
-I$(builddir)/src -I$(srcdir)/src
AM_CPPFLAGS = -I$(builddir)/lib -I$(builddir)/src -I$(srcdir)/src \
-I$(srcdir)/gdbus -I$(srcdir)/btio

if MCAP
AM_CPPFLAGS += -I$(builddir)/health
Expand Down
10 changes: 6 additions & 4 deletions Makefile.obexd
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ obexd_src_obexd_CFLAGS = @GLIB_CFLAGS@ @DBUS_CFLAGS@ \
-DPLUGINDIR=\""$(obex_plugindir)"\" \
-fPIC -D_FILE_OFFSET_BITS=64

obexd_src_obexd_CPPFLAGS = -include $(top_builddir)/config.h -I$(builddir)/lib \
-I$(builddir)/obexd/src -I$(srcdir)/obexd/src
obexd_src_obexd_CPPFLAGS = -I$(builddir)/lib -I$(builddir)/obexd/src \
-I$(srcdir)/obexd/src -I$(srcdir)/btio \
-I$(srcdir)/gobex -I$(srcdir)/gdbus

obexd_src_obexd_SHORTNAME = obexd

Expand Down Expand Up @@ -75,7 +76,8 @@ obexd_client_obex_client_LDADD = lib/libbluetooth-private.la \
obexd_client_obex_client_CFLAGS = @GLIB_CFLAGS@ @DBUS_CFLAGS@ \
-fPIC -D_FILE_OFFSET_BITS=64

obexd_client_obex_client_CPPFLAGS = -include $(top_builddir)/config.h \
-I$(builddir)/lib -I$(srcdir)/obexd/src
obexd_client_obex_client_CPPFLAGS = -I$(builddir)/lib -I$(srcdir)/obexd/src \
-I$(srcdir)/btio -I$(srcdir)/gobex \
-I$(srcdir)/gdbus

obexd_client_obex_client_SHORTNAME = obex-client
4 changes: 4 additions & 0 deletions attrib/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
*/


#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <errno.h>
#include <stdlib.h>
#include <stdbool.h>
Expand Down
4 changes: 4 additions & 0 deletions attrib/gatt-service.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <glib.h>
#include <bluetooth/uuid.h>
#include <bluetooth/sdp.h>
Expand Down
4 changes: 4 additions & 0 deletions attrib/gatt.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdint.h>
#include <stdlib.h>
#include <glib.h>
Expand Down
4 changes: 4 additions & 0 deletions attrib/gatttool.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <errno.h>
#include <glib.h>
#include <stdlib.h>
Expand Down
4 changes: 4 additions & 0 deletions emulator/b1ee.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
Expand Down
4 changes: 4 additions & 0 deletions emulator/btdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
Expand Down
4 changes: 4 additions & 0 deletions emulator/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
Expand Down
4 changes: 4 additions & 0 deletions emulator/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <ctype.h>
Expand Down
4 changes: 4 additions & 0 deletions emulator/vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
Expand Down
4 changes: 4 additions & 0 deletions gdbus/mainloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <glib.h>
#include <dbus/dbus.h>

Expand Down
4 changes: 4 additions & 0 deletions gdbus/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <string.h>

Expand Down
4 changes: 4 additions & 0 deletions gdbus/polkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <errno.h>

#include <dbus/dbus.h>
Expand Down
4 changes: 4 additions & 0 deletions gdbus/watch.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <string.h>

Expand Down
4 changes: 4 additions & 0 deletions gobex/gobex-apparam.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <string.h>
#include <unistd.h>
#include <errno.h>
Expand Down
4 changes: 4 additions & 0 deletions gobex/gobex-defs.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <glib.h>

#include "gobex-defs.h"
Expand Down
4 changes: 4 additions & 0 deletions gobex/gobex-header.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <string.h>

#include "gobex-header.h"
Expand Down
4 changes: 4 additions & 0 deletions gobex/gobex-packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <string.h>
#include <errno.h>

Expand Down
4 changes: 4 additions & 0 deletions gobex/gobex-transfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <string.h>
#include <errno.h>

Expand Down
4 changes: 4 additions & 0 deletions gobex/gobex.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
*
*/

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <unistd.h>
#include <string.h>
#include <errno.h>
Expand Down
4 changes: 4 additions & 0 deletions lib/bluetooth.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <ctype.h>
Expand Down
4 changes: 4 additions & 0 deletions lib/hci.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
Expand Down
4 changes: 4 additions & 0 deletions lib/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
Expand Down
4 changes: 4 additions & 0 deletions lib/uuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <string.h>
#include <stdlib.h>
#include <errno.h>
Expand Down
4 changes: 4 additions & 0 deletions monitor/btsnoop.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
Expand Down
4 changes: 4 additions & 0 deletions monitor/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <unistd.h>
Expand Down
4 changes: 4 additions & 0 deletions monitor/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <unistd.h>
Expand Down
4 changes: 4 additions & 0 deletions monitor/hcidump.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <unistd.h>
Expand Down
4 changes: 4 additions & 0 deletions monitor/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
Expand Down
4 changes: 4 additions & 0 deletions monitor/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
Expand Down
4 changes: 4 additions & 0 deletions monitor/mainloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <unistd.h>
Expand Down
4 changes: 4 additions & 0 deletions monitor/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <errno.h>
#include <ctype.h>
Expand Down
4 changes: 4 additions & 0 deletions monitor/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
4 changes: 4 additions & 0 deletions monitor/uuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "uuid.h"

static struct {
Expand Down
Loading

0 comments on commit b8779d2

Please sign in to comment.