projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06cf47d
)
examples/utils.h: hack a solution for access() on windows
author
Paul Brossier
<piem@piem.org>
Sat, 23 Apr 2016 19:07:57 +0000
(21:07 +0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 23 Apr 2016 19:07:57 +0000
(21:07 +0200)
examples/utils.h
patch
|
blob
|
history
diff --git
a/examples/utils.h
b/examples/utils.h
index
901029c
..
c9587dd
100644
(file)
--- a/
examples/utils.h
+++ b/
examples/utils.h
@@
-30,6
+30,10
@@
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h> // for access
+#elif defined(HAVE_WIN_HACKS)
+#include <io.h>
+#define access _access
+#define F_OK 0
#endif
#ifdef HAVE_MATH_H
#include <math.h> // for isfinite