libpkgconf: separate config.h from the actual API headers

pull/109/head
William Pitcock 2016-12-13 12:14:08 -06:00
parent 3c6fe6b164
commit 82fa8b21cf
4 changed files with 3 additions and 1 deletions

View File

@ -95,6 +95,7 @@ libpkgconf_la_LDFLAGS = -version-info 2:0:0 -export-symbols-regex '^pkgconf_'
dist_man_MANS = pkgconf.1 dist_man_MANS = pkgconf.1
pkgconf_LDADD = libpkgconf.la pkgconf_LDADD = libpkgconf.la
pkgconf_SOURCES = main.c getopt_long.c pkgconf_SOURCES = main.c getopt_long.c
pkgconf_CPPFLAGS = -Ilibpkgconf
noinst_HEADERS = getopt_long.h noinst_HEADERS = getopt_long.h
dist_doc_DATA = README.md AUTHORS dist_doc_DATA = README.md AUTHORS

View File

@ -16,7 +16,6 @@
#ifndef LIBPKGCONF__LIBPKGCONF_H #ifndef LIBPKGCONF__LIBPKGCONF_H
#define LIBPKGCONF__LIBPKGCONF_H #define LIBPKGCONF__LIBPKGCONF_H
#include <libpkgconf/config.h>
#include <libpkgconf/stdinc.h> #include <libpkgconf/stdinc.h>
#include <libpkgconf/iter.h> #include <libpkgconf/iter.h>
#include <libpkgconf/bsdstubs.h> #include <libpkgconf/bsdstubs.h>

View File

@ -13,6 +13,7 @@
* from the use of this software. * from the use of this software.
*/ */
#include <libpkgconf/config.h>
#include <libpkgconf/libpkgconf.h> #include <libpkgconf/libpkgconf.h>
bool bool

1
main.c
View File

@ -14,6 +14,7 @@
*/ */
#include <libpkgconf/libpkgconf.h> #include <libpkgconf/libpkgconf.h>
#include "config.h"
#include "getopt_long.h" #include "getopt_long.h"
#define PKG_CFLAGS_ONLY_I (((uint64_t) 1) << 2) #define PKG_CFLAGS_ONLY_I (((uint64_t) 1) << 2)