[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
__MSVCRT__ vs _WIN32
From: |
wrotycz |
Subject: |
__MSVCRT__ vs _WIN32 |
Date: |
Fri, 24 Jan 2025 03:55:39 +0100 |
User-agent: |
GWP-Draft |
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.
- __MSVCRT__ vs _WIN32,
wrotycz <=