Advertisement
ptkrisada

/usr/src/sys/sys/cdefs.h

Mar 3rd, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.22 KB | None | 0 0
  1. % cvs rdiff -u -r1.132.6.1 -r1.132.6.2 src/sys/sys/cdefs.h
  2. Index: src/sys/sys/cdefs.h
  3. diff -u src/sys/sys/cdefs.h:1.132.6.1 src/sys/sys/cdefs.h:1.132.6.2
  4. --- src/sys/sys/cdefs.h:1.132.6.1   Sat Jan 13 21:33:14 2018
  5. +++ src/sys/sys/cdefs.h Sun Mar  3 11:10:16 2019
  6. @@ -1,4 +1,4 @@
  7. -/* $NetBSD: cdefs.h,v 1.132.6.1 2018/01/13 21:33:14 snj Exp $  */
  8. +/* $NetBSD: cdefs.h,v 1.132.6.2 2019/03/03 11:10:16 martin Exp $   */
  9.  
  10.  /* * Copyright (c) 1991, 1993
  11.   * The Regents of the University of California.  All rights reserved.
  12. @@ -405,18 +405,16 @@
  13.  #endif
  14.  
  15.  /*
  16. - * C99 defines __func__ predefined identifier, which was made available
  17. - * in GCC 2.95.
  18. + * C99 and C++11 define __func__ predefined identifier, which was made
  19. + * available in GCC 2.95.
  20.   */
  21. -#if !(__STDC_VERSION__ >= 199901L)
  22. -#if __GNUC_PREREQ__(2, 6)
  23. -#define    __func__    __PRETTY_FUNCTION__
  24. -#elif __GNUC_PREREQ__(2, 4)
  25. +#if !(__STDC_VERSION__ >= 199901L) && !(__cplusplus - 0 >= 201103L)
  26. +#if __GNUC_PREREQ__(2, 4)
  27.  #define    __func__    __FUNCTION__
  28.  #else
  29.  #define    __func__    ""
  30.  #endif
  31. -#endif /* !(__STDC_VERSION__ >= 199901L) */
  32. +#endif /* !(__STDC_VERSION__ >= 199901L) && !(__cplusplus - 0 >= 201103L) */
  33.  
  34.  #if defined(_KERNEL)
  35.  #if defined(NO_KERNEL_RCSIDS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement