diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2008-11-20 20:56:15 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2008-11-20 20:56:15 +0000 |
commit | 98bb40c9ba08b9ffd288aa470dba660d13f029d9 (patch) | |
tree | 8559003b084729cd42ecc8c21435a88af15e1334 /src/ne_alloc.c | |
parent | 4c544fc74fe50a1af403e017b085752b29d4ecda (diff) | |
download | neon-98bb40c9ba08b9ffd288aa470dba660d13f029d9.tar.gz |
* src/ne_alloc.c, src/ne_alloc.h (ne_free): Implement as function on Win32,
thanks to Helge Hess.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1609 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_alloc.c')
-rw-r--r-- | src/ne_alloc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ne_alloc.c b/src/ne_alloc.c index d7eca98..7d98bf2 100644 --- a/src/ne_alloc.c +++ b/src/ne_alloc.c @@ -76,6 +76,14 @@ void *ne_realloc(void *ptr, size_t len) return ret; } +#ifdef WIN32 +/* Implemented only to ensure free is bound to the correct DLL. */ +void ne_free(void *ptr) +{ + free(ptr); +} +#endif + char *ne_strdup(const char *s) { char *ret; |