diff --git a/src/Platform/GlxApplication.cpp b/src/Platform/GlxApplication.cpp index 848ba0af0..ad864107c 100644 --- a/src/Platform/GlxApplication.cpp +++ b/src/Platform/GlxApplication.cpp @@ -30,6 +30,11 @@ namespace Magnum { namespace Platform { GlxApplication::GlxApplication(const Arguments& arguments, const Configuration& configuration): AbstractXApplication(new Implementation::GlxContextHandler, arguments, configuration) {} -GlxApplication::GlxApplication(const Arguments& arguments, std::nullptr_t): AbstractXApplication(new Implementation::GlxContextHandler, arguments, nullptr) {} +#ifndef CORRADE_GCC45_COMPATIBILITY +GlxApplication::GlxApplication(const Arguments& arguments, std::nullptr_t) +#else +GlxApplication::GlxApplication(const Arguments& arguments, void*) +#endif + : AbstractXApplication(new Implementation::GlxContextHandler, arguments, nullptr) {} }} diff --git a/src/Platform/XEglApplication.cpp b/src/Platform/XEglApplication.cpp index 4449db1b6..94bc7ad02 100644 --- a/src/Platform/XEglApplication.cpp +++ b/src/Platform/XEglApplication.cpp @@ -30,6 +30,11 @@ namespace Magnum { namespace Platform { XEglApplication::XEglApplication(const Arguments& arguments, const Configuration& configuration): AbstractXApplication(new Implementation::EglContextHandler, arguments, configuration) {} -XEglApplication::XEglApplication(const Arguments& arguments, std::nullptr_t): AbstractXApplication(new Implementation::EglContextHandler, arguments, nullptr) {} +#ifndef CORRADE_GCC45_COMPATIBILITY +XEglApplication::XEglApplication(const Arguments& arguments, std::nullptr_t) +#else +XEglApplication::XEglApplication(const Arguments& arguments, void*) +#endif + : AbstractXApplication(new Implementation::EglContextHandler, arguments, nullptr) {} }}