diff --git a/lite_str.c b/lite_str.c index a5bfff7..454be0e 100644 --- a/lite_str.c +++ b/lite_str.c @@ -967,4 +967,4 @@ bool string_shrink_to_fit(lite_string *const restrict s) { } } return false; -} \ No newline at end of file +} diff --git a/lite_str.h b/lite_str.h index fab9072..2c228f5 100644 --- a/lite_str.h +++ b/lite_str.h @@ -1,5 +1,6 @@ #pragma once #if __cplusplus +#define restrict extern "C" { #endif