diff options
| author | joerg <joerg@NetBSD.org> | 2013-04-26 21:20:47 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2013-04-26 21:20:47 +0000 |
| commit | cbac8a3bae654c70e8279a66cfe907512e7e4b53 (patch) | |
| tree | 9bfe205fbec3fe24f4703cd420e3e985233512d0 /common/lib/libc/stdlib | |
| parent | 4abd76efb609cd648c8af2d841532108f28236bf (diff) | |
Restore standalone strtol/strtoul for citrus for now.
Diffstat (limited to 'common/lib/libc/stdlib')
| -rw-r--r-- | common/lib/libc/stdlib/_strtol.h | 10 | ||||
| -rw-r--r-- | common/lib/libc/stdlib/_strtoul.h | 11 |
2 files changed, 13 insertions, 8 deletions
diff --git a/common/lib/libc/stdlib/_strtol.h b/common/lib/libc/stdlib/_strtol.h index 22e82964afd..9066524e34d 100644 --- a/common/lib/libc/stdlib/_strtol.h +++ b/common/lib/libc/stdlib/_strtol.h @@ -1,4 +1,4 @@ -/* $NetBSD: _strtol.h,v 1.5 2013/04/16 21:44:06 joerg Exp $ */ +/* $NetBSD: _strtol.h,v 1.6 2013/04/26 21:20:48 joerg Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -41,7 +41,7 @@ * __INT_MIN : lower limit of the return type * __INT_MAX : upper limit of the return type */ -#if defined(_KERNEL) || defined(_STANDALONE) || defined(HAVE_NBTOOL_CONFIG_H) +#if defined(_KERNEL) || defined(_STANDALONE) || defined(HAVE_NBTOOL_CONFIG_H) || defined(BCS_ONLY) __INT _FUNCNAME(const char *nptr, char **endptr, int base) #else @@ -82,7 +82,8 @@ INT_FUNCNAME(_int_, _FUNCNAME, _l)(const char *nptr, char **endptr, * assume decimal; if base is already 16, allow 0x. */ s = nptr; -#if defined(_KERNEL) || defined(_STANDALONE) || defined(HAVE_NBTOOL_CONFIG_H) +#if defined(_KERNEL) || defined(_STANDALONE) || \ + defined(HAVE_NBTOOL_CONFIG_H) || defined(BCS_ONLY) do { c = *s++; } while (isspace(c)); @@ -186,7 +187,8 @@ INT_FUNCNAME(_int_, _FUNCNAME, _l)(const char *nptr, char **endptr, return(acc); } -#if !defined(_KERNEL) && !defined(_STANDALONE) && !defined(HAVE_NBTOOL_CONFIG_H) +#if !defined(_KERNEL) && !defined(_STANDALONE) && \ + !defined(HAVE_NBTOOL_CONFIG_H) && !defined(BCS_ONLY) __INT _FUNCNAME(const char *nptr, char **endptr, int base) { diff --git a/common/lib/libc/stdlib/_strtoul.h b/common/lib/libc/stdlib/_strtoul.h index c6e0a0a7913..34b90128ab3 100644 --- a/common/lib/libc/stdlib/_strtoul.h +++ b/common/lib/libc/stdlib/_strtoul.h @@ -1,4 +1,4 @@ -/* $NetBSD: _strtoul.h,v 1.5 2013/04/16 21:44:06 joerg Exp $ */ +/* $NetBSD: _strtoul.h,v 1.6 2013/04/26 21:20:48 joerg Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -40,7 +40,8 @@ * __UINT : return type * __UINT_MAX : upper limit of the return type */ -#if defined(_KERNEL) || defined(_STANDALONE) || defined(HAVE_NBTOOL_CONFIG_H) +#if defined(_KERNEL) || defined(_STANDALONE) || \ + defined(HAVE_NBTOOL_CONFIG_H) || defined(BCS_ONLY) __UINT _FUNCNAME(const char *nptr, char **endptr, int base) #else @@ -78,7 +79,8 @@ INT_FUNCNAME(_int_, _FUNCNAME, _l)(const char *nptr, char **endptr, * assume decimal; if base is already 16, allow 0x. */ s = nptr; -#if defined(_KERNEL) || defined(_STANDALONE) || defined(HAVE_NBTOOL_CONFIG_H) +#if defined(_KERNEL) || defined(_STANDALONE) || \ + defined(HAVE_NBTOOL_CONFIG_H) || defined(BCS_ONLY) do { c = *s++; } while (isspace(c)); @@ -145,7 +147,8 @@ INT_FUNCNAME(_int_, _FUNCNAME, _l)(const char *nptr, char **endptr, return(acc); } -#if !defined(_KERNEL) && !defined(_STANDALONE) && !defined(HAVE_NBTOOL_CONFIG_H) +#if !defined(_KERNEL) && !defined(_STANDALONE) && \ + !defined(HAVE_NBTOOL_CONFIG_H) && !defined(BCS_ONLY) __UINT _FUNCNAME(const char *nptr, char **endptr, int base) { |
