diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-08-04 14:27:58 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-08-04 14:27:58 +0100 |
commit | 91975afd35bb0c6c0fc5ce0794ec0ae8ebe2f805 (patch) | |
tree | bf3889ba1d84b44b38ed27b46b9a572b5dd38d87 /gdb/utils.h | |
parent | 9f06dab1e3acfb675669348a3ff331580d4eaf1e (diff) | |
download | gdb-91975afd35bb0c6c0fc5ce0794ec0ae8ebe2f805.zip gdb-91975afd35bb0c6c0fc5ce0794ec0ae8ebe2f805.tar.gz gdb-91975afd35bb0c6c0fc5ce0794ec0ae8ebe2f805.tar.bz2 |
Add namespace std to nullptr_t
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.
Diffstat (limited to 'gdb/utils.h')
-rw-r--r-- | gdb/utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/utils.h b/gdb/utils.h index c922a22..bb5fadc 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -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; } |