aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakayuki Matsuoka <t-mat@users.noreply.github.com>2022-08-01 06:12:45 +0900
committerTakayuki Matsuoka <t-mat@users.noreply.github.com>2022-08-01 06:12:45 +0900
commit9173ca37d793a6cbb1e5a8657d8e6ebafc53230c (patch)
tree8d4c1f584adf987deb182192d0bdc6d1e09a7dac
parentfa889cf6daa12e2ce9e7ac42f1eaccf2466b4c7c (diff)
downloadlz4-9173ca37d793a6cbb1e5a8657d8e6ebafc53230c.tar.gz
Fix : Internal memory allocation macro names
-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