diff options
author | Oneric <oneric@oneric.stub> | 2021-07-09 21:51:51 +0200 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2021-07-09 23:40:51 +0200 |
commit | 19d2257c779e04c78ae7f5190ef1ee1c5384da57 (patch) | |
tree | b9cc7489951ff0fc32385644ef0107ba2ac2fadc | |
parent | 856824f94a95e30b477f4ff7f3badcafd41285f1 (diff) | |
download | libass-19d2257c779e04c78ae7f5190ef1ee1c5384da57.tar.bz2 libass-19d2257c779e04c78ae7f5190ef1ee1c5384da57.tar.xz |
compare: fix _mkdir include on Windows
To use Microsoft's _mkdir one must include direct.h, not sys/stat.h as
for POSIX's mkdir. This is still true with modern MinGW headers used.
The sys/stat.h include remains required for stat.
-rw-r--r-- | compare/compare.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compare/compare.c b/compare/compare.c index 76e9ace..5748a76 100644 --- a/compare/compare.c +++ b/compare/compare.c @@ -24,6 +24,7 @@ #include <string.h> #if defined(_WIN32) && !defined(__CYGWIN__) +#include <direct.h> #define mkdir(path, mode) _mkdir(path) #endif |