A zoo of values for system

Yes, I only use mingw. But good job finding it.

Your solution is bad for cross compilation tho as you need to execute the target binary. You can do that in pure shell without needing to execute the compiled binary, by using something like echo '#define PLATFORM_NAME X' | cc -dM -E - | grep PLATFORM_NAME | awk '{ print $3 }'

2 Likes