Skip to content

Distribute and run LLMs with a single file.

Fix llamafile.h regression

Justine Tunney5fcffd1014c4
diff --git a/llamafile/llamafile.h b/llamafile/llamafile.h
index c380ed52..73d91d64 100644
--- a/llamafile/llamafile.h
+++ b/llamafile/llamafile.h
@@ -2,7 +2,9 @@
#define LLAMAFILE_H_
#include <stdio.h>
#include <stdbool.h>
-COSMOPOLITAN_C_START_
+#ifdef __cplusplus
+extern "C" {
+#endif
struct llamafile;
struct llamafile *llamafile_open(const char *, const char *);
@@ -25,5 +27,7 @@ void llamafile_schlep(const void *, size_t);
void llamafile_get_app_dir(char *, size_t);
bool llamafile_launch_browser(const char *);
-COSMOPOLITAN_C_END_
+#ifdef __cplusplus
+}
+#endif
#endif /* LLAMAFILE_H_ */