ksherlock / mpw

Macintosh Programmer's Workshop (mpw) compatibility layer
238 stars 21 forks source link

Apple Silicon: sizeof(long double) != 16 #36

Open MaddTheSane opened 3 years ago

MaddTheSane commented 3 years ago

When building against Apple Silicon, SANE fails to build due to the size of long double being the same as double: static_assert failed due to requirement 'sizeof(long double) == 16' "unexpected long double size"

This might require creation of a struct, or finding a different floating type.

mpw/toolbox/sane.cpp:176:3: error: static_assert
      failed due to requirement 'sizeof(long double) == 16' "unexpected long
      double size"
                static_assert(sizeof(long double) == 16, "unexpected lon...
                ^             ~~~~~~~~~~~~~~~~~~~~~~~~~
ksherlock commented 3 years ago

Thanks. I wonder if Rosetta handles it.

It should be fixed now.