@@ -8,6 +8,10 @@
#include "wasm.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum EncodingFlag {
UTF8,
WTF8,
@@ -110,4 +114,8 @@ wasm_string_rewind(WASMString str_obj, uint32 pos, uint32 count,
void
wasm_string_dump(WASMString str_obj);
+} /* end of extern "C" */
#endif /* end of _STRING_OBJECT_H_ */