I have an old legacy code written in pure C. It's crossplatform. I need to define a NaN constant in it. My approach was:
`const double _NAN = 0.0/0.0;`  

Unfortunately when I tried to build the code on Win machine (VS 2022) I've got `"error C2124: divide or mod by zero"`.

I'm pretty sure there is a parameter for parameter for MSVC compiler that disables it, but that's a public project and MS VS is only one of IDE which could be used to build it. And I don't want ask users to change defaults in a specific environment.

I guess I could use HEX value for NaN but suppose I'll face with endiannes... Which imply i'll need to detect endiannes in portable way.

Are there any better options to define NaN for double in C in a crossplatform way?