libpgf: Only #define nullptr when using C++ < 11
libPGF is an implementation of the Progressive Graphics File (PGF)
Brought to you by:
c_stamm
nullptr has been part of the C++ standard since C++11, so redefining it is a bad idea. It causes actual build issues on e.g. FreeBSD, whose sys/_null.h
has
#if __cplusplus >= 201103L #define NULL nullptr
so actually using libpgf with code built with -std=c++11
or later that still uses NULL
causes a loop because nullptr
is defined to NULL
, which is defined to nullptr
.
Thanks for your ticket and hint!