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;