mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user