fix binding build

This commit is contained in:
Jeffrey Morgan 2023-07-10 11:33:43 -07:00
parent 07a4c1e3fb
commit 268e362fa7

View file

@ -20,8 +20,12 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE. // SOFTWARE.
#ifdef __cplusplus
extern "C" { extern "C" {
#endif
#include <stdbool.h> #include <stdbool.h>
extern unsigned char tokenCallback(void *, char *); extern unsigned char tokenCallback(void *, char *);
@ -58,4 +62,8 @@ void llama_binding_free_model(void *state);
int llama_predict(void *params_ptr, void *state_pr, char *result, bool debug); int llama_predict(void *params_ptr, void *state_pr, char *result, bool debug);
#ifdef __cplusplus
} }
#endif