Skip to content

Commit 0cdd232

Browse files
evpobrerikd
authored andcommitted
regtest/database.c: Fix compilation with MSVC
getcwd function requires direct.h header.
1 parent 9f5b4e5 commit 0cdd232

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

regtest/database.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
#endif
2828
#include <string.h>
2929
#include <fcntl.h>
30+
#ifdef HAVE_DIRECT_H
31+
#include <direct.h>
32+
#endif
3033
#include <sys/stat.h>
3134

3235
#include <sndfile.h>

0 commit comments

Comments
 (0)