This is done in heimdall/source/Heimdall.h and libpit/source/libpit.h.
Unfortunately this breaks the build for me (w/libc++ and clang 4.0), but I'm surprised it doesn't break elsewhere--nullptr needs to be std::nullptr_t not int.
I'm guessing this code is meant as part of transition to C++11, presumably it can be removed now?
git blame points to this commit for what it's worth.
If there's a platform that needs this for compatibility reasons perhaps instead of guarding with #ifndef the code instead checks for C++ version (#if __cplusplus < 201103L) or so?
This is done in
heimdall/source/Heimdall.h
andlibpit/source/libpit.h
.Unfortunately this breaks the build for me (w/libc++ and clang 4.0), but I'm surprised it doesn't break elsewhere--nullptr needs to be
std::nullptr_t
notint
.I'm guessing this code is meant as part of transition to C++11, presumably it can be removed now?
git blame
points to this commit for what it's worth.If there's a platform that needs this for compatibility reasons perhaps instead of guarding with
#ifndef
the code instead checks for C++ version (#if __cplusplus < 201103L
) or so?