The macro test around the inclusion of stdbool.h is way too broad and doesn't take into account compiler abilities. stdbool.h was defined in C99, and was introduced with GCC 3.0. Rather than cut out the entirety of Solaris (Solaris 10 and 11 include stdbool.h, as does any illumos distribution), we should test for compiler platform C99 compliance. This allows Time::Moment to compile on Solaris and illumos using GCC. Tested under macOS+brew++LLVM as well.
The macro test around the inclusion of
stdbool.h
is way too broad and doesn't take into account compiler abilities.stdbool.h
was defined in C99, and was introduced with GCC 3.0. Rather than cut out the entirety of Solaris (Solaris 10 and 11 includestdbool.h
, as does any illumos distribution), we should test for compiler platform C99 compliance. This allowsTime::Moment
to compile on Solaris and illumos using GCC. Tested under macOS+brew++LLVM as well.