From f9967e1ab5889e758df639976456657add005981 Mon Sep 17 00:00:00 2001 From: RDW Date: Tue, 9 Aug 2022 05:59:59 +0200 Subject: [PATCH] Remove a __wasm__ define guard around public APIs --- src/native/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/api.c b/src/native/api.c index c4ce197c..b95d0b2b 100644 --- a/src/native/api.c +++ b/src/native/api.c @@ -80,6 +80,8 @@ void llhttp_free(llhttp_t* parser) { free(parser); } +#endif // defined(__wasm__) + /* Some getters required to get stuff from the parser */ uint8_t llhttp_get_type(llhttp_t* parser) { @@ -106,8 +108,6 @@ uint8_t llhttp_get_upgrade(llhttp_t* parser) { return parser->upgrade; } -#endif // defined(__wasm__) - void llhttp_reset(llhttp_t* parser) { llhttp_type_t type = parser->type;