mirror of
https://github.com/lammertb/libhttp.git
synced 2025-09-08 23:12:07 +03:00
Fix mingw compiler error
This commit is contained in:
@@ -159,7 +159,9 @@ typedef long off_t;
|
|||||||
#define INT64_FMT "I64d"
|
#define INT64_FMT "I64d"
|
||||||
|
|
||||||
#define WINCDECL __cdecl
|
#define WINCDECL __cdecl
|
||||||
|
#define SHUT_RD 0
|
||||||
#define SHUT_WR 1
|
#define SHUT_WR 1
|
||||||
|
#define SHUT_BOTH 2
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#define vsnprintf _vsnprintf
|
#define vsnprintf _vsnprintf
|
||||||
#define access _access
|
#define access _access
|
||||||
|
@@ -50,7 +50,9 @@
|
|||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
|
|
||||||
#define getcwd(a,b) _getcwd(a,b)
|
#define getcwd(a,b) _getcwd(a,b)
|
||||||
|
#if !defined(__MINGW32__)
|
||||||
extern char *_getcwd(char *buf, size_t size);
|
extern char *_getcwd(char *buf, size_t size);
|
||||||
|
#endif
|
||||||
static int guard = 0; /* test if any dialog is already open */
|
static int guard = 0; /* test if any dialog is already open */
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
#ifndef PATH_MAX
|
||||||
|
Reference in New Issue
Block a user