Skip to content

Commit 8e197f3

Browse files
authored
Fix Windows include for hdf5 utils access API
1 parent d66b2e3 commit 8e197f3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/hdf5/hdf5_utils.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
#include <iostream>
77
#include <fstream>
88
#include <errno.h>
9+
#ifdef _WIN32
10+
# include <io.h> // _access()
11+
# define access _access
12+
# define W_OK 2
13+
#else
14+
# include <unistd.h>
15+
#endif
916
#include <vector>
1017
#include <boost/filesystem.hpp>
1118

0 commit comments

Comments
 (0)