Source-Changes-HG archive

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

[src/trunk]: src/include Provide the long long routines for C++11 code.



details:   https://anonhg.NetBSD.org/src/rev/329612f065ac
branches:  trunk
changeset: 786326:329612f065ac
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Apr 26 17:36:24 2013 +0000

description:
Provide the long long routines for C++11 code.

diffstat:

 include/stdlib.h |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r ebe13655f38e -r 329612f065ac include/stdlib.h
--- a/include/stdlib.h  Fri Apr 26 17:35:52 2013 +0000
+++ b/include/stdlib.h  Fri Apr 26 17:36:24 2013 +0000
@@ -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 @@
 
 #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 @@
  * 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 */



Home | Main Index | Thread Index | Old Index