https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109818
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2023-05-12 Ever confirmed|0 |1 --- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> --- If djgpp is already using c_global/cmath then your change is completely wrong. The problem is more likely to be that this macro is not defined for djgpp: #ifdef _GLIBCXX_USE_C99_MATH_TR1 And if djgpp doesn't have a full C99 math library then that would explain why you don't have std::trunc (or any of the other C99 math functions). Adding ad-hoc declarations for a single function in arbitrary places is certainly not going to happen. You should figure out why the existing declarations aren't being used and fix *that*, not just propose ad-hoc kluges without understanding the context. At this point there is no clear description of the problem or the status quo for djgpp. "This change is needed" is not sufficient, sorry.