FreeBSDs /usr/include/sys/_null.h defines
[...] #if __cplusplus >= 201103L #define NULL nullptr [...]
This leads to compilation errors:
core/libs/dimg/loaders/pgfloader.cpp:295:27: error: use of undeclared identifier 'NULL' NULL, ^ /usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL' #define NULL nullptr ^ core/libs/pgfutils/libpgf/PGFplatform.h:488:20: note: expanded from macro 'nullptr' #define nullptr NULL ^ core/libs/dimg/loaders/pgfloader.cpp:455:26: error: use of undeclared identifier 'NULL' NULL, ^ /usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL' #define NULL nullptr ^ core/libs/pgfutils/libpgf/PGFplatform.h:488:20: note: expanded from macro 'nullptr' #define nullptr NULL ^ 2 errors generated. ninja: build stopped: subcommand failed.