aboutsummaryrefslogtreecommitdiff
path: root/lib/lz4.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lz4.c')
-rw-r--r--lib/lz4.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 77b24f79..b9c5a65a 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -189,12 +189,9 @@
* Memory routines
**************************************/
#if defined(LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION)
-# undef LZ4_ALLOC
-# undef LZ4_ALLOC_AND_ZERO
-# undef LZ4_FREEMEM
-# define LZ4_ALLOC(x) lz4_error_memory_allocation_is_disabled
-# define LZ4_ALLOC_AND_ZERO(x) lz4_error_memory_allocation_is_disabled
-# define LZ4_FREEMEM(x) lz4_error_memory_allocation_is_disabled
+# define ALLOC(s) lz4_error_memory_allocation_is_disabled
+# define ALLOC_AND_ZERO(s) lz4_error_memory_allocation_is_disabled
+# define FREEMEM(p) lz4_error_memory_allocation_is_disabled
#elif defined(LZ4_USER_MEMORY_FUNCTIONS)
/* memory management functions can be customized by user project.
* Below functions must exist somewhere in the Project