summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-08-19 21:32:25 +0000
committerwlemb <wlemb>2001-08-19 21:32:25 +0000
commiteaf33277027de8b8f5a104db588b38e2eddb0ceb (patch)
tree20e1b89778b74e4665e7820eda994786caeebd2b /src/include
parent553ad14abef58812d0b3c49b610dd82c54c30637 (diff)
downloadgroff-eaf33277027de8b8f5a104db588b38e2eddb0ceb.tar.gz
Use a config.h file.
* src/include/lib.h: Include config.h. * All C files: Ditto (if necessary). * All C++ source and header files: Include lib.h first (if necessary). * src/include/config.hin: New file (autogenerated by autoheader). * stamp-h.in: New file. * configure.ac: Updated. * aclocal.m4: Add third parameters to AC_DEFINE macros. (GROFF_ARRAY_DELETE): Simplified. * Makefile.sub (DISTCLEANFILES): Updated. Added targets for remaking config.status, config.hin, config.h, stamp-h.in, and stamp-h. * configure: Regenerated. * NEWS: Updated.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/driver.h4
-rw-r--r--src/include/lib.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/include/driver.h b/src/include/driver.h
index 97eb8912..798b3504 100644
--- a/src/include/driver.h
+++ b/src/include/driver.h
@@ -18,7 +18,8 @@ You should have received a copy of the GNU General Public License along
with groff; see the file COPYING. If not, write to the Free Software
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#include <stdio.h>
+#include "lib.h"
+
#include <ctype.h>
#include <stdlib.h>
#include <stddef.h>
@@ -29,7 +30,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "error.h"
#include "font.h"
#include "printer.h"
-#include "lib.h"
void do_file(const char *);
extern printer *pr;
diff --git a/src/include/lib.h b/src/include/lib.h
index 06ec5756..db0674a3 100644
--- a/src/include/lib.h
+++ b/src/include/lib.h
@@ -18,6 +18,10 @@ You should have received a copy of the GNU General Public License along
with groff; see the file COPYING. If not, write to the Free Software
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
extern "C" {
#ifndef HAVE_STRERROR
char *strerror(int);