From 44359cb429d41bb660db0109d7c0769e7c51358f Mon Sep 17 00:00:00 2001 From: hogliux Date: Thu, 7 Apr 2016 09:59:35 +0100 Subject: [PATCH] Fix missing std::nullptr defines --- modules/juce_core/native/juce_osx_ObjCHelpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_core/native/juce_osx_ObjCHelpers.h b/modules/juce_core/native/juce_osx_ObjCHelpers.h index 9a164dd92f..f1f900e3c8 100644 --- a/modules/juce_core/native/juce_osx_ObjCHelpers.h +++ b/modules/juce_core/native/juce_osx_ObjCHelpers.h @@ -212,8 +212,8 @@ public: ObjCBlock (C* _this, R (C::*fn)(P...)) : block (CreateObjCBlock (_this, fn)) {} ObjCBlock (BlockType b) : block ([b copy]) {} ObjCBlock& operator= (const BlockType& other) { if (block != nullptr) { [block release]; } block = [other copy]; return *this; } - bool operator== (std::nullptr_t) const { return (block == nullptr); } - bool operator!= (std::nullptr_t) const { return (block != nullptr); } + bool operator== (const void* ptr) const { return (block == ptr); } + bool operator!= (const void* ptr) const { return (block != ptr); } ~ObjCBlock() { if (block != nullptr) [block release]; } operator BlockType() { return block; }