Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib pull in config.h (et al) for libnbcompat



details:   https://anonhg.NetBSD.org/src/rev/a4d3c057d6e8
branches:  trunk
changeset: 537831:a4d3c057d6e8
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Oct 06 12:07:28 2002 +0000

description:
pull in config.h (et al) for libnbcompat

diffstat:

 lib/libc/stdlib/strtoll.c |  18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diffs (59 lines):

diff -r c6b28ba3da55 -r a4d3c057d6e8 lib/libc/stdlib/strtoll.c
--- a/lib/libc/stdlib/strtoll.c Sun Oct 06 11:38:41 2002 +0000
+++ b/lib/libc/stdlib/strtoll.c Sun Oct 06 12:07:28 2002 +0000
@@ -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 @@
 #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 @@
  */
 /* 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 @@
                *endptr = (char *)(any ? s - 1 : nptr);
        return (acc);
 }
+#endif



Home | Main Index | Thread Index | Old Index