diff options
author | drh <drh@noemail.net> | 2018-01-09 02:27:13 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-01-09 02:27:13 +0000 |
commit | a8691309ddfc650f7aedc601abb7448d4f4b34a2 (patch) | |
tree | 7742936d724ad0fbcc9fe40e8f7ac5e1da9954e5 /ext/misc/fileio.c | |
parent | 562f0c8e468a5e0bdd216106f28ca6688cd6ce72 (diff) | |
download | sqlite-a8691309ddfc650f7aedc601abb7448d4f4b34a2.tar.gz sqlite-a8691309ddfc650f7aedc601abb7448d4f4b34a2.zip |
Avoid a compiler warning when building with newer versions of MinGW
FossilOrigin-Name: cba0206a15f30313e16a08634995ebfd5d325d83affb859a215e72509f539b4e
Diffstat (limited to 'ext/misc/fileio.c')
-rw-r--r-- | ext/misc/fileio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/misc/fileio.c b/ext/misc/fileio.c index 31af50a0c..76d948362 100644 --- a/ext/misc/fileio.c +++ b/ext/misc/fileio.c @@ -92,7 +92,9 @@ SQLITE_EXTENSION_INIT1 # include <direct.h> # include "test_windirent.h" # define dirent DIRENT -# define stat _stat +# ifndef stat +# define stat _stat +# endif # define mkdir(path,mode) _mkdir(path) # define lstat(path,buf) _stat(path,buf) #endif |