diff options
| author | lukem <lukem@NetBSD.org> | 2002-10-06 12:07:28 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2002-10-06 12:07:28 +0000 |
| commit | 9df13b15cf578d4f0ff4985ebd5bafaa6fb712b6 (patch) | |
| tree | 6115b03abb3b14507fa8cc4cf0b9930a746cb904 /lib/libc/stdlib | |
| parent | 12bc497c14b530b175a57ec09a7dbc4a18853497 (diff) | |
pull in config.h (et al) for libnbcompat
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/strtoll.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/libc/stdlib/strtoll.c b/lib/libc/stdlib/strtoll.c index 3d21c34e149..7fc119dfa64 100644 --- a/lib/libc/stdlib/strtoll.c +++ b/lib/libc/stdlib/strtoll.c @@ -1,4 +1,4 @@ -/* $NetBSD: strtoll.c,v 1.3 2001/05/07 08:32:20 kleink Exp $ */ +/* $NetBSD: strtoll.c,v 1.4 2002/10/06 12:07:28 lukem Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -38,11 +38,13 @@ #if 0 static char sccsid[] = "from: @(#)strtoq.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: strtoll.c,v 1.3 2001/05/07 08:32:20 kleink Exp $"); +__RCSID("$NetBSD: strtoll.c,v 1.4 2002/10/06 12:07:28 lukem Exp $"); #endif #endif /* LIBC_SCCS and not lint */ +#ifdef _LIBC #include "namespace.h" +#endif #include <assert.h> #include <ctype.h> @@ -50,10 +52,17 @@ __RCSID("$NetBSD: strtoll.c,v 1.3 2001/05/07 08:32:20 kleink Exp $"); #include <limits.h> #include <stdlib.h> +#ifdef _LIBC #ifdef __weak_alias __weak_alias(strtoll, _strtoll) #endif +#endif + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#if !HAVE_STRTOLL /* * Convert a string to a long long integer. * @@ -62,7 +71,11 @@ __weak_alias(strtoll, _strtoll) */ /* LONGLONG */ long long int +#ifdef _LIBC _strtoll(nptr, endptr, base) +#else +strtoll(nptr, endptr, base) +#endif const char *nptr; char **endptr; int base; @@ -173,3 +186,4 @@ _strtoll(nptr, endptr, base) *endptr = (char *)(any ? s - 1 : nptr); return (acc); } +#endif |
