managarm / frigg

Lightweight C++ utilities and algorithms for system programming
MIT License
56 stars 20 forks source link

printf: allow disabling long double support #44

Closed ilobilo closed 2 years ago

ilobilo commented 2 years ago

On clang, with -mno-80387, it's not possible to even refer to long doubles, lest it be rejected as invalid. As a workaround for this, support defining FRG_DONT_USE_LONG_DOUBLE to remove long double overloads and formatting.