psmedley / gcc

GNU General Public License v2.0
7 stars 1 forks source link

Enable missing acosh & friends in cmath #34

Closed dmik closed 4 years ago

dmik commented 5 years ago

Currently, std::acosh and friends are not part of std because our c++config.h lacks _GLIBCXX_USE_C99_MATH_TR1. Should be easily fixable but we also need to guard some imports (like log2, log2f and tgammaf) with #ifdef _GNU_SOURCE as they are not defined by math.h otherwise.

As a temporary solution, one may simply omit the std namespace so that C versions will be dragged right from the global C namespace.

dmik commented 5 years ago

The relevant commit with workarounds that need to be undone once this is fixed is this one: https://github.com/bitwiseworks/qtdeclarative-os2/commit/e7a97582cd3174aaa5c8533df37fe86efdc5f740

dmik commented 4 years ago

Closing in favor of https://github.com/bitwiseworks/gcc-os2/issues/15.