mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-29 21:08:24 +00:00
Merge branch 'master' of ssh://github.com/valenok/mongoose
This commit is contained in:
commit
e7ac6024de
1 file changed
+10
+10
@@ -1247,10 +1247,15 @@ void ns_mgr_free(struct ns_mgr *s) {
|
|||||||
#define fopen(x, y) mg_fopen((x), (y))
|
#define fopen(x, y) mg_fopen((x), (y))
|
||||||
#define open(x, y, z) mg_open((x), (y), (z))
|
#define open(x, y, z) mg_open((x), (y), (z))
|
||||||
#define close(x) _close(x)
|
#define close(x) _close(x)
|
||||||
|
#define fileno(x) _fileno(x)
|
||||||
#define lseek(x, y, z) _lseeki64((x), (y), (z))
|
#define lseek(x, y, z) _lseeki64((x), (y), (z))
|
||||||
|
#define read(x, y, z) _read((x), (y), (z))
|
||||||
|
#define write(x, y, z) _write((x), (y), (z))
|
||||||
#define popen(x, y) _popen((x), (y))
|
#define popen(x, y) _popen((x), (y))
|
||||||
#define pclose(x) _pclose(x)
|
#define pclose(x) _pclose(x)
|
||||||
#define mkdir(x, y) _mkdir(x)
|
#define mkdir(x, y) _mkdir(x)
|
||||||
|
#define rmdir(x) _rmdir(x)
|
||||||
|
#define strdup(x) _strdup(x)
|
||||||
#ifndef __func__
|
#ifndef __func__
|
||||||
#define STRX(x) #x
|
#define STRX(x) #x
|
||||||
#define STR(x) STRX(x)
|
#define STR(x) STRX(x)
|
||||||
@@ -1269,8 +1274,13 @@ typedef HANDLE process_id_t;
|
|||||||
|
|
||||||
#else ////////////// UNIX specific defines and includes
|
#else ////////////// UNIX specific defines and includes
|
||||||
|
|
||||||
|
#if !defined(MONGOOSE_NO_FILESYSTEM) &&\
|
||||||
|
(!defined(MONGOOSE_NO_DAV) || !defined(MONGOOSE_NO_DIRECTORY_LISTING))
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
#endif
|
||||||
|
#if !defined(MONGOOSE_NO_FILESYSTEM) && !defined(MONGOOSE_NO_DL)
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
#endif
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#define O_BINARY 0
|
#define O_BINARY 0
|
||||||
|
|||||||
Reference in new issue
Block a user