Module Name:    src
Committed By:   joerg
Date:           Fri Apr 26 17:36:24 UTC 2013

Modified Files:
        src/include: stdlib.h

Log Message:
Provide the long long routines for C++11 code.


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/include/stdlib.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/stdlib.h
diff -u src/include/stdlib.h:1.104 src/include/stdlib.h:1.105
--- src/include/stdlib.h:1.104	Fri Apr 19 14:35:31 2013
+++ src/include/stdlib.h	Fri Apr 26 17:36:24 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: stdlib.h,v 1.104 2013/04/19 14:35:31 joerg Exp $	*/
+/*	$NetBSD: stdlib.h,v 1.105 2013/04/26 17:36:24 joerg Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -65,7 +65,7 @@ typedef struct {
 
 #if !defined(_ANSI_SOURCE) && \
     (defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \
-     defined(_NETBSD_SOURCE))
+     (__cplusplus - 0) >= 201103L || defined(_NETBSD_SOURCE))
 typedef struct {
 	/* LONGLONG */
 	long long int quot;	/* quotient */
@@ -207,7 +207,8 @@ char	*ptsname(int);
  * ISO C99
  */
 #if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \
-    defined(_NETBSD_SOURCE)
+    defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L
+
 /* LONGLONG */
 long long int	atoll(const char *);
 /* LONGLONG */

Reply via email to