build: include config.h manually

Previously we included it with an `-include` compiler directive. But
that's not portable. And it's better to be explicit anyway.

Every .c file should have `include "config.h"` first thing.

Signed-off-by: Ran Benita <ran@unusedvar.com>
master
Ran Benita 2019-12-27 13:03:20 +02:00
parent bdff8ebe3c
commit 40aab05e77
66 changed files with 128 additions and 3 deletions

View File

@ -22,6 +22,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <sys/time.h>

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <time.h>
#include "xkbcommon/xkbcommon-compose.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <stdlib.h>
#include <time.h>

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <time.h>
#include "../test/test.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <time.h>
#include "../test/test.h"

View File

@ -3,6 +3,7 @@
*
* Currently, just parses an input file, and hopefully doesn't crash or hang.
*/
#include "config.h"
#include <assert.h>

View File

@ -3,6 +3,7 @@
*
* Currently, just parses an input file, and hopefully doesn't crash or hang.
*/
#include "config.h"
#include <assert.h>

View File

@ -115,7 +115,6 @@ else
message('C library does not support secure_getenv, using getenv instead')
endif
configure_file(output: 'config.h', configuration: configh_data)
add_project_arguments('-include', 'config.h', language: 'c')
# Supports -Wl,--version-script?

View File

@ -70,6 +70,8 @@
*
********************************************************/
#include "config.h"
#include "utils.h"
#include "atom.h"

View File

@ -52,6 +52,8 @@ OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
#include "config.h"
#include <errno.h>
#include "utils.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "utils.h"
#include "paths.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "table.h"
#include "utils.h"
#include "keysym.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "utils.h"
#include "table.h"
#include "parser.h"

View File

@ -24,6 +24,8 @@
* Author: Daniel Stone <daniel@fooishbar.org>
*/
#include "config.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>

View File

@ -24,6 +24,8 @@
* Author: Daniel Stone <daniel@fooishbar.org>
*/
#include "config.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>

View File

@ -24,6 +24,8 @@
* Author: Daniel Stone <daniel@fooishbar.org>
*/
#include "config.h"
#include "keymap.h"
static void

View File

@ -50,6 +50,8 @@
*
* ********************************************************/
#include "config.h"
#include "keymap.h"
#include "text.h"

View File

@ -35,6 +35,8 @@
*
*/
#include "config.h"
#include "xkbcommon/xkbcommon.h"
#include "utils.h"
#include "utf8.h"

View File

@ -47,6 +47,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <stdlib.h>
#include "xkbcommon/xkbcommon.h"
#include "utils.h"

View File

@ -59,6 +59,8 @@
* - messages (very unlikely)
*/
#include "config.h"
#include "keymap.h"
#include "keysym.h"
#include "utf8.h"

View File

@ -24,6 +24,8 @@
*
********************************************************/
#include "config.h"
#include "keymap.h"
#include "text.h"

View File

@ -24,6 +24,8 @@
* Author: Rob Bradford <rob@linux.intel.com>
*/
#include "config.h"
#include <stddef.h>
#include <stdbool.h>
#include <inttypes.h>

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "utils.h"
#ifdef HAVE_MMAP

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "x11-priv.h"
/*

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "x11-priv.h"
static bool

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "x11-priv.h"
XKB_EXPORT int

View File

@ -51,6 +51,8 @@
* Ran Benita <ran234@gmail.com>
*/
#include "config.h"
#include "xkbcomp-priv.h"
#include "text.h"
#include "expr.h"

View File

@ -51,6 +51,8 @@
* Ran Benita <ran234@gmail.com>
*/
#include "config.h"
#include "xkbcomp-priv.h"
#include "ast-build.h"
#include "include.h"

View File

@ -47,6 +47,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "xkbcomp-priv.h"
#include "text.h"
#include "expr.h"

View File

@ -24,6 +24,8 @@
*
********************************************************/
#include "config.h"
#include "xkbcomp-priv.h"
#include "text.h"
#include "expr.h"

View File

@ -47,6 +47,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <errno.h>
#include <limits.h>
#include <stdio.h>

View File

@ -24,6 +24,8 @@
*
********************************************************/
#include "config.h"
#include "xkbcomp-priv.h"
#include "text.h"
#include "expr.h"

View File

@ -49,6 +49,8 @@
* Author: Daniel Stone <daniel@fooishbar.org>
*/
#include "config.h"
#include "xkbcomp-priv.h"
#include "text.h"

View File

@ -27,6 +27,8 @@
* Ran Benita <ran234@gmail.com>
*/
#include "config.h"
#include "xkbcomp-priv.h"
static void

View File

@ -29,6 +29,7 @@
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
#endif
#include "config.h"
#include "xkbcomp-priv.h"
#include "parser-priv.h"

View File

@ -31,6 +31,8 @@
*/
%{
#include "config.h"
#include "xkbcomp/xkbcomp-priv.h"
#include "xkbcomp/ast-build.h"
#include "xkbcomp/parser-priv.h"

View File

@ -47,6 +47,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "xkbcomp-priv.h"
#include "rules.h"
#include "include.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "xkbcomp-priv.h"
#include "parser-priv.h"
#include "scanner-utils.h"

View File

@ -51,6 +51,8 @@
* Ran Benita <ran234@gmail.com>
*/
#include "config.h"
#include "xkbcomp-priv.h"
#include "text.h"
#include "expr.h"

View File

@ -24,6 +24,8 @@
*
********************************************************/
#include "config.h"
#include "xkbcomp-priv.h"
#include "text.h"
#include "vmod.h"

View File

@ -24,6 +24,8 @@
*
********************************************************/
#include "config.h"
#include "xkbcomp-priv.h"
#include "text.h"
#include "expr.h"

View File

@ -27,6 +27,8 @@
* Daniel Stone <daniel@fooishbar.org>
*/
#include "config.h"
#include "xkbcomp-priv.h"
#include "rules.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <time.h>
#include "test.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -30,6 +30,8 @@
* Ran Benita <ran234@gmail.com>
*/
#include "config.h"
#include <limits.h>
#include <fcntl.h>
#include <unistd.h>

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "xkbcommon/xkbcommon-compose.h"
#include "test.h"

View File

@ -23,6 +23,8 @@
* Author: Daniel Stone <daniel@fooishbar.org>
*/
#include "config.h"
#include "test.h"
#include "context.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "test.h"
static int

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>

View File

@ -23,6 +23,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <errno.h>
#include <fcntl.h>
#include <locale.h>

View File

@ -21,13 +21,15 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <locale.h>
#include <xcb/xkb.h>
#include "xkbcommon/xkbcommon-x11.h"
#include "test.h"
#include <xcb/xkb.h>
/*
* Note: This program only handles the core keyboard device for now.
* It should be straigtforward to change struct keyboard to a list of

View File

@ -23,6 +23,8 @@
* Author: Mike Blumenkrantz <zmike@osg.samsung.com>
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "evdev-scancodes.h"
#include "test.h"

View File

@ -20,6 +20,8 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <locale.h>
#include "test.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "test.h"
#include "context.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <unistd.h>
#include "test.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <unistd.h>
#include <getopt.h>

View File

@ -21,6 +21,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <assert.h>
#include <errno.h>
@ -29,6 +30,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "xkbcommon/xkbcommon.h"
static bool print = false;

View File

@ -22,6 +22,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "test-config.h"
#include "test.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "test.h"
#include "xkbcomp/xkbcomp-priv.h"
#include "xkbcomp/rules.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "evdev-scancodes.h"
#include "test.h"

View File

@ -23,6 +23,8 @@
* Author: Daniel Stone <daniel@fooishbar.org>
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <assert.h>
#include <inttypes.h>
#include <stdbool.h>

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include "test.h"
#include "xkbcommon/xkbcommon-x11.h"

View File

@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <stdio.h>
#include <spawn.h>
#include <unistd.h>