diff options
author | lukem <lukem@NetBSD.org> | 2003-10-27 00:12:41 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 2003-10-27 00:12:41 +0000 |
commit | c96713c3f9606de88abbc83b0a87d28c690e5a18 (patch) | |
tree | 051fbc687b39ec13f3287d2b8c95e580b1d9fd41 | |
parent | 5d3626da146de847d792ffd2f02b057561c73290 (diff) | |
download | bsd-progress-c96713c3f9606de88abbc83b0a87d28c690e5a18.tar.gz bsd-progress-c96713c3f9606de88abbc83b0a87d28c690e5a18.tar.zst bsd-progress-c96713c3f9606de88abbc83b0a87d28c690e5a18.zip |
Overhaul how `build.sh tools' are used:
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
-rw-r--r-- | strsuftoll.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/strsuftoll.c b/strsuftoll.c index ef2c466..867223e 100644 --- a/strsuftoll.c +++ b/strsuftoll.c @@ -1,4 +1,4 @@ -/* $NetBSD: strsuftoll.c,v 1.3 2003/08/07 16:43:44 agc Exp $ */ +/* $NetBSD: strsuftoll.c,v 1.4 2003/10/27 00:12:42 lukem Exp $ */ /*- * Copyright (c) 2001-2002 The NetBSD Foundation, Inc. * All rights reserved. @@ -67,20 +67,20 @@ * SUCH DAMAGE. */ +#if HAVE_NBTOOL_CONFIG_H +#include "nbtool_config.h" +#endif + #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: strsuftoll.c,v 1.3 2003/08/07 16:43:44 agc Exp $"); +__RCSID("$NetBSD: strsuftoll.c,v 1.4 2003/10/27 00:12:42 lukem Exp $"); #endif /* LIBC_SCCS and not lint */ #ifdef _LIBC #include "namespace.h" #endif -#if HAVE_CONFIG_H -#include "config.h" -#endif - #if !HAVE_STRSUFTOLL #include <sys/types.h> |