]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add namespace std to nullptr_t
authorYao Qi <yao.qi@linaro.org>
Fri, 4 Aug 2017 13:27:58 +0000 (14:27 +0100)
committerYao Qi <yao.qi@linaro.org>
Fri, 4 Aug 2017 13:27:58 +0000 (14:27 +0100)
This patch fixes the build failure for target i686-w64-mingw32,

In file included from ../../binutils-gdb/gdb/defs.h:786:0,
                 from ../../binutils-gdb/gdb/gdb.c:19:
../../binutils-gdb/gdb/utils.h:188:20: error: ‘nullptr_t’ has not been declared
   bool operator!= (nullptr_t)
                    ^
../../binutils-gdb/gdb/utils.h:193:20: error: ‘nullptr_t’ has not been declared
   bool operator== (nullptr_t)
                    ^

gdb:

2017-08-04  Yao Qi  <yao.qi@linaro.org>

* utils.h (gdb_argv): Add namespace std for nullptr_t.

gdb/ChangeLog
gdb/utils.h

index 7f16f86c325f90b7c6e56ea9a44544c8ed574a32..d286f5140f6fb423097c93c4a04ec04625aa4ba5 100644 (file)
@@ -1,3 +1,7 @@
+2017-08-04  Yao Qi  <yao.qi@linaro.org>
+
+       * utils.h (gdb_argv): Add namespace std for nullptr_t.
+
 2017-08-03  Ruslan Kabatsayev  <b7.10110111@gmail.com>
 
        * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
index c922a22ffad7259b8a09117ea6aa0c301e7e05b7..bb5fadc7647572a71b007cc45ce1f3905347f539 100644 (file)
@@ -185,12 +185,12 @@ public:
     return m_argv + count ();
   }
 
-  bool operator!= (nullptr_t)
+  bool operator!= (std::nullptr_t)
   {
     return m_argv != NULL;
   }
 
-  bool operator== (nullptr_t)
+  bool operator== (std::nullptr_t)
   {
     return m_argv == NULL;
   }