]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/config/os/bsd/netbsd/ctype_base.h
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / config / os / bsd / netbsd / ctype_base.h
index d75cb79aaf6d7a619acc9d5cbee0040684597d71..340bd8e3d4e75762d58aa4ff5dc6f1f38c0d3726 100644 (file)
@@ -1,6 +1,6 @@
 // Locale support -*- C++ -*-
 
-// Copyright (C) 2000, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2000-2020 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
 //
 // ISO C++ 14882: 22.1  Locales
 //
-  
+
 // Information as gleaned from /usr/include/ctype.h on NetBSD.
 // Full details can be found from the CVS files at:
 //   anoncvs@anoncvs.netbsd.org:/cvsroot/basesrc/include/ctype.h
 // See www.netbsd.org for details of access.
-  
-#include <sys/param.h>
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
@@ -47,7 +45,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     // on the mask type. Because of this, we don't use an enum.
     typedef unsigned char              mask;
 
-#if __NetBSD_Version__ < 599004100
+#ifndef _CTYPE_U
     static const mask upper            = _U;
     static const mask lower    = _L;
     static const mask alpha    = _U | _L;
@@ -71,6 +69,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     static const mask cntrl    = _CTYPE_C;
     static const mask punct    = _CTYPE_P;
     static const mask alnum    = _CTYPE_U | _CTYPE_L | _CTYPE_N;
+#endif
+#if __cplusplus >= 201103L
+    static const mask blank    = space;
 #endif
   };