mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-03 11:05:13 +00:00
win32: Add missing include for mkdir() and rmdir()
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
0234c186ba
commit
502acd164f
@ -23,6 +23,7 @@
|
||||
#ifdef GIT_WIN32
|
||||
|
||||
# include <io.h>
|
||||
# include <direct.h>
|
||||
# include <windows.h>
|
||||
|
||||
#define snprintf _snprintf
|
||||
|
||||
@ -43,9 +43,14 @@ extern int gitfo_read_file(gitfo_buf *obj, const char *path);
|
||||
extern void gitfo_free_buf(gitfo_buf *obj);
|
||||
|
||||
#define gitfo_unlink(p) unlink(p)
|
||||
#define gitfo_mkdir(p,m) mkdir(p, m)
|
||||
#define gitfo_rmdir(p) rmdir(p)
|
||||
|
||||
#ifdef GIT_WIN32
|
||||
#define gitfo_mkdir(p,m) mkdir(p)
|
||||
#else
|
||||
#define gitfo_mkdir(p,m) mkdir(p, m)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Read-only map all or part of a file into memory.
|
||||
* When possible this function should favor a virtual memory
|
||||
|
||||
Loading…
Reference in New Issue
Block a user