8264346: nullptr_t undefined in global namespace for clang+libstdc++
Reviewed-by: dholmes, kbarrett
This commit is contained in:
parent
0fa35728a7
commit
dec344709f
src/hotspot/share
@ -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==(nullptr_t) const { return _o == nullptr; }
|
||||
bool operator!=(nullptr_t) const { return _o != nullptr; }
|
||||
bool operator==(std::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; }
|
||||
};
|
||||
|
@ -34,6 +34,8 @@
|
||||
|
||||
#include COMPILER_HEADER(utilities/globalDefinitions)
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
class oopDesc;
|
||||
|
||||
// Defaults for macros that might be defined per compiler.
|
||||
|
Loading…
x
Reference in New Issue
Block a user