fix binding build
This commit is contained in:
parent
07a4c1e3fb
commit
268e362fa7
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue