Fix POSIX header guard to include _WIN32 for Intel icx on Windows (#6244)

Intel's icx compiler defines _WIN32 (with underscore) but not WIN32,
causing unistd.h and other POSIX headers to be incorrectly included
on Windows builds.
This commit is contained in:
Scot Breitenfeld
2026-03-01 07:19:05 -06:00
committed by GitHub
parent 757bc31319
commit 322b30b6e8
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
#include <stdlib.h>
#include <string.h>
#if !defined(WIN32) && !defined(__MINGW32__)
#if !defined(WIN32) && !defined(__MINGW32__) && !defined(_WIN32)
#include <fcntl.h>
#include <unistd.h>
+1 -1
View File
@@ -34,7 +34,7 @@
#include <stdint.h>
#include <string.h>
#if !defined(WIN32) && !defined(__MINGW32__)
#if !defined(WIN32) && !defined(__MINGW32__) && !defined(_WIN32)
#include <fcntl.h>
#include <unistd.h>
+1 -1
View File
@@ -25,7 +25,7 @@
#include H5_ZLIB_HEADER /* "zlib.h" */
#endif
#if !defined(WIN32) && !defined(__MINGW32__)
#if !defined(WIN32) && !defined(__MINGW32__) && !defined(_WIN32)
#include <errno.h>
#include <fcntl.h>