Make json-c include respect pkg-config --cflags

json-c.pc contains `Cflags: -I${includedir}/json-c`, so `<json-c/json.h>`
won't be found unless the parent directory is searched by default.
This commit is contained in:
Jan Beich 2019-01-23 18:00:14 +00:00 committed by Brian Ashworth
parent 1a1133dcc5
commit ba96983bf0
9 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
#ifndef _SWAY_IPC_JSON_H
#define _SWAY_IPC_JSON_H
#include <json-c/json.h>
#include <json.h>
#include "sway/tree/container.h"
#include "sway/input/input-manager.h"

View File

@ -1,6 +1,6 @@
#ifndef _SWAYBAR_STATUS_LINE_H
#define _SWAYBAR_STATUS_LINE_H
#include <json-c/json.h>
#include <json.h>
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>

View File

@ -5,7 +5,7 @@
#include <string.h>
#include <strings.h>
#include <stdio.h>
#include <json-c/json.h>
#include <json.h>
#include "sway/commands.h"
#include "sway/config.h"
#include "sway/criteria.h"

View File

@ -1,4 +1,4 @@
#include <json-c/json.h>
#include <json.h>
#include <libevdev/libevdev.h>
#include <stdio.h>
#include <ctype.h>

View File

@ -4,7 +4,7 @@
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <json-c/json.h>
#include <json.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>

View File

@ -1,5 +1,5 @@
#define _POSIX_C_SOURCE 200809L
#include <json-c/json.h>
#include <json.h>
#include <linux/input-event-codes.h>
#include <ctype.h>
#include <stdlib.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <json-c/json.h>
#include <json.h>
#include "swaybar/config.h"
#include "swaybar/ipc.h"
#include "config.h"

View File

@ -1,7 +1,7 @@
#define _POSIX_C_SOURCE 200809L
#include <fcntl.h>
#include <sys/ioctl.h>
#include <json-c/json.h>
#include <json.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

View File

@ -9,7 +9,7 @@
#include <sys/socket.h>
#include <ctype.h>
#include <unistd.h>
#include <json-c/json.h>
#include <json.h>
#include "stringop.h"
#include "ipc-client.h"
#include "log.h"