Re: [hatari-devel] Removing SDL use for byte order checks / conversions

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


David Savinkoff schrieb:

I think MSFT is trying to be a trouble maker here, so use the force.

It's always easy and convenient to blame Microsoft, I know. But -- as
Thomas already wrote -- M_PI is *not* part of math.h in ANSI C. You will
find that glibc's math.h does not define it unconditionally either:
https://github.com/bminor/glibc/blob/b7bd94068e55d5fa8681e2ab4802d31852ea404e/math/math.h#L1144
.... it's just that __USE_MISC or __USE_XOPEN is set somewhere else.

I would conditionally define M_PI most accurately in a future-proof way.

.... and, therefore, this suggestion might be good solution.

Regards
Christian
--
Christian Zietz  -  CHZ-Soft  -  czietz@xxxxxxx
WWW: https://www.chzsoft.de/
New GnuPG-Key-ID: 0x8708B34C827B159E




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/