diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2016-10-11 09:13:35 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2016-10-23 21:09:24 +0200 |
commit | f354f534357798eb3ba497b7143132f41ff090f6 (patch) | |
tree | 6e06ce3e2387b43882130a95eb065f0a43048e62 /i3-dump-log | |
parent | c2bd10c482173b72a74f568348305ea87d3b4dd9 (diff) | |
download | i3-f354f534357798eb3ba497b7143132f41ff090f6.tar.gz i3-f354f534357798eb3ba497b7143132f41ff090f6.zip |
Ensure all *.[ch] files include config.h
Including config.h is necessary to get e.g. the _GNU_SOURCE define and
any other definitions that autoconf declares. Hence, config.h needs to
be included as the first header in each file.
This is done either via:
1. Including "common.h" (i3bar)
2. Including "libi3.h"
3. Including "all.h" (i3)
4. Including <config.h> directly
Also remove now-unused I3__FILE__, add copyright/license statement
where missing and switch include/all.h to #pragma once.
Diffstat (limited to 'i3-dump-log')
-rw-r--r-- | i3-dump-log/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/i3-dump-log/main.c b/i3-dump-log/main.c index d9b0613c..ec9e577d 100644 --- a/i3-dump-log/main.c +++ b/i3-dump-log/main.c @@ -7,6 +7,8 @@ * i3-dump-log/main.c: Dumps the i3 SHM log to stdout. * */ +#include <config.h> + #include <stdio.h> #include <stdbool.h> #include <sys/types.h> |