From 8d490096fd1464546f6eb3bcda5054cc163aed7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 17 Mar 2022 20:22:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96define?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 32/base14.c | 4 +++- 64/base14.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/32/base14.c b/32/base14.c index 31905d9..4523be7 100644 --- a/32/base14.c +++ b/32/base14.c @@ -39,7 +39,9 @@ //#define DEBUG -#define new malloc +#ifndef new + #define new malloc +#endif LENDAT* encode(const uint8_t* data, const int32_t len) { LENDAT* encd = (LENDAT*)new(sizeof(LENDAT)); diff --git a/64/base14.c b/64/base14.c index eb7ad70..e31cf65 100644 --- a/64/base14.c +++ b/64/base14.c @@ -46,7 +46,9 @@ //#define DEBUG -#define new malloc +#ifndef new + #define new malloc +#endif LENDAT* encode(const uint8_t* data, const int64_t len) { LENDAT* encd = (LENDAT*)new(sizeof(LENDAT));