mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-12 16:50:21 +00:00
Fix mg_prefix test
This commit is contained in:
1 parent
299075c930
commit
bdb747f9de
7 files changed
+14
-14
No files matched your search
+3
-3
@@ -423,7 +423,7 @@ const char *unpack(const char *path, size_t *size) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if defined(__linux__)
|
||||
#if defined(__linux__) && defined(GCC)
|
||||
ssize_t packed_read(void *cookie, char *buf, size_t size) {
|
||||
struct packed_file *fp = (struct packed_file *) cookie;
|
||||
if (size > fp->size - fp->pos) size = fp->size - fp->pos;
|
||||
@@ -452,7 +452,7 @@ int packed_close(void *cookie) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
FILE *fopen_packed(const char *path, const char *mode) {
|
||||
FILE *mg_fopen_packed(const char *path, const char *mode) {
|
||||
cookie_io_functions_t funcs = {
|
||||
.read = packed_read,
|
||||
.write = packed_write,
|
||||
@@ -469,7 +469,7 @@ FILE *fopen_packed(const char *path, const char *mode) {
|
||||
return fopencookie(cookie, mode, funcs);
|
||||
}
|
||||
#else
|
||||
FILE *fopen_packed(const char *path, const char *mode) {
|
||||
FILE *mg_fopen_packed(const char *path, const char *mode) {
|
||||
(void) path, (void) mode;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user