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

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


Hi,

On 2.10.2022 22.05, Christian Zietz wrote:
Thomas Huth schrieb:

Without that, compilation was broken with VisualStudio:

https://cirrus-ci.com/task/6045603464478720?logs=main#L752

See:
https://learn.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=msvc-170

Ok, Thanks!

So better solution than the SDL include, would be adding this to "main.h", before <math.h> include:
	#define _USE_MATH_DEFINES  // for MSVC

Thomas, could you try that in your CI?


	- Eero



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