mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8264346: nullptr_t undefined in global namespace for clang+libstdc++
Reviewed-by: dholmes, kbarrett
This commit is contained in:
parent
0fa35728a7
commit
dec344709f
2 changed files with 4 additions and 2 deletions
|
@ -100,8 +100,8 @@ public:
|
||||||
bool operator==(const oop& o) const { return _o == o._o; }
|
bool operator==(const oop& o) const { return _o == o._o; }
|
||||||
bool operator!=(const oop& o) const { return _o != o._o; }
|
bool operator!=(const oop& o) const { return _o != o._o; }
|
||||||
|
|
||||||
bool operator==(nullptr_t) const { return _o == nullptr; }
|
bool operator==(std::nullptr_t) const { return _o == nullptr; }
|
||||||
bool operator!=(nullptr_t) const { return _o != nullptr; }
|
bool operator!=(std::nullptr_t) const { return _o != nullptr; }
|
||||||
|
|
||||||
oop& operator=(const oop& o) { _o = o._o; return *this; }
|
oop& operator=(const oop& o) { _o = o._o; return *this; }
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,6 +34,8 @@
|
||||||
|
|
||||||
#include COMPILER_HEADER(utilities/globalDefinitions)
|
#include COMPILER_HEADER(utilities/globalDefinitions)
|
||||||
|
|
||||||
|
#include <cstddef>
|
||||||
|
|
||||||
class oopDesc;
|
class oopDesc;
|
||||||
|
|
||||||
// Defaults for macros that might be defined per compiler.
|
// Defaults for macros that might be defined per compiler.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue