https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63789
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> --- long long (or int64_t) is not part of C++03, so solaris headers don't provide the overload. We complete the set of overloads in c* headers, but there is a well known bug that we don't provide wrappers for the *.h headers. It would be interesting to see how Oracle is updating the solaris headers for C++11.