I noticed that for windows specific stuff check for __MSVCRT__ is used.  Most 
other >>projects<< use test for _WIN32.   What is the rationale for 
that?   --   #if defined __MSVCRT__      #include <fcntl.h>      #include 
<io.h>  #endif   #if defined(__MSVCRT__)      setmode(STDIN_FILENO, 
O_BINARY);      setmode(STDOUT_FILENO, O_BINARY);  #endif   --   Also, 
according to MSDN  _WIN32 Defined as 1 when the compilation target is 32-bit 
ARM, 64-bit ARM, x86, or x64. Otherwise, undefined.  learn.microsoft.com 
https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros

Reply via email to