diff options
author | Yury Usishchev <y.usishchev@samsung.com> | 2016-02-15 18:17:32 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-02-15 12:42:47 -0500 |
commit | a444bb67e9a314a6e4e9b5c1e966b43aa02ec85a (patch) | |
tree | 38122aa82f23abdd548fa12ab2e69160e3b6eacd /libmisc | |
parent | 876b9da17f37102985f9493ba75ecaaa34429a83 (diff) | |
download | acl-a444bb67e9a314a6e4e9b5c1e966b43aa02ec85a.tar.gz |
Rework config.h usage
Move #include "config.h" from misc.h to every source file. It's incorrect
to include it after a system header file because it does things like:
Those must come before you include any system header file in order for
them to work properly. It hasn't bitten us so far, but we still should
fix the files to do the right thing.
Diffstat (limited to 'libmisc')
-rw-r--r-- | libmisc/high_water_alloc.c | 1 | ||||
-rw-r--r-- | libmisc/next_line.c | 1 | ||||
-rw-r--r-- | libmisc/quote.c | 1 | ||||
-rw-r--r-- | libmisc/unquote.c | 1 | ||||
-rw-r--r-- | libmisc/walk_tree.c | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/libmisc/high_water_alloc.c b/libmisc/high_water_alloc.c index 951f4bb..d941cab 100644 --- a/libmisc/high_water_alloc.c +++ b/libmisc/high_water_alloc.c @@ -17,6 +17,7 @@ License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdio.h> #include <stdlib.h> #include "misc.h" diff --git a/libmisc/next_line.c b/libmisc/next_line.c index 126a364..c357655 100644 --- a/libmisc/next_line.c +++ b/libmisc/next_line.c @@ -15,6 +15,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdio.h> #include <string.h> #include <limits.h> diff --git a/libmisc/quote.c b/libmisc/quote.c index a24c958..e2f6e06 100644 --- a/libmisc/quote.c +++ b/libmisc/quote.c @@ -17,6 +17,7 @@ License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> diff --git a/libmisc/unquote.c b/libmisc/unquote.c index b8b3505..fca2338 100644 --- a/libmisc/unquote.c +++ b/libmisc/unquote.c @@ -17,6 +17,7 @@ License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> diff --git a/libmisc/walk_tree.c b/libmisc/walk_tree.c index 0a6af1e..d4a7dcd 100644 --- a/libmisc/walk_tree.c +++ b/libmisc/walk_tree.c @@ -17,6 +17,7 @@ License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> |