commit: r1609 - neon/trunk/src
joe at manyfish.co.uk
joe at manyfish.co.uk
Thu Nov 20 15:56:16 EST 2008
Author: joe
Date: Thu Nov 20 12:56:15 2008
New Revision: 1609
Modified:
neon/trunk/src/ne_alloc.c
neon/trunk/src/ne_alloc.h
Log:
* src/ne_alloc.c, src/ne_alloc.h (ne_free): Implement as function on Win32,
thanks to Helge Hess.
Modified: neon/trunk/src/ne_alloc.c
==============================================================================
--- neon/trunk/src/ne_alloc.c (original)
+++ neon/trunk/src/ne_alloc.c Thu Nov 20 12:56:15 2008
@@ -76,6 +76,14 @@
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;
Modified: neon/trunk/src/ne_alloc.h
==============================================================================
--- neon/trunk/src/ne_alloc.h (original)
+++ neon/trunk/src/ne_alloc.h Thu Nov 20 12:56:15 2008
@@ -48,8 +48,12 @@
void *ne_realloc(void *ptr, size_t s);
char *ne_strdup(const char *s) ne_attribute_malloc;
char *ne_strndup(const char *s, size_t n) ne_attribute_malloc;
+#ifdef WIN32
+void ne_free(void *ptr);
+#else
#define ne_free free
#endif
+#endif
NE_END_DECLS
More information about the neon-commits
mailing list