commit cf4ce2dee3b8e30f6f3b589cf00c7a62184c301b
parent 08f66f1b7b6dcc12189846d2524f87095b92cc7d
Author: vaplv <vaplv@free.fr>
Date: Thu, 7 May 2015 17:28:47 +0200
Export the mem_default_allocator symbol on MSVC
Diffstat:
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/mem_allocator.h b/src/mem_allocator.h
@@ -69,9 +69,6 @@ struct mem_allocator {
void* data;
};
-/* Default allocator. */
-RSYS_API struct mem_allocator mem_default_allocator;
-
/*******************************************************************************
* Helper macros
******************************************************************************/
@@ -101,10 +98,14 @@ RSYS_API struct mem_allocator mem_default_allocator;
((Allocator)->dump((Allocator)->data, (Msg), (MaxLen)))
+BEGIN_DECLS
+
+/* Default allocator. */
+RSYS_API struct mem_allocator mem_default_allocator;
+
/*******************************************************************************
* Regular allocation functions
******************************************************************************/
-BEGIN_DECLS
RSYS_API void* mem_alloc(const size_t size);
RSYS_API void* mem_calloc(const size_t nelmts, const size_t size);