mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 09:28:54 +00:00
23 lines
736 B
Diff
23 lines
736 B
Diff
--- a/llama/llama.go
|
|
+++ b/llama/llama.go
|
|
@@ -22,7 +22,7 @@
|
|
extern void llamaLog(int level, char* text, void* user_data);
|
|
|
|
typedef enum {COMP_UNKNOWN,COMP_GCC,COMP_CLANG} COMPILER;
|
|
-COMPILER inline get_compiler() {
|
|
+static inline COMPILER get_compiler() {
|
|
#if defined(__clang__)
|
|
return COMP_CLANG;
|
|
#elif defined(__GNUC__)
|
|
--- a/ml/backend/ggml/ggml.go
|
|
+++ b/ml/backend/ggml/ggml.go
|
|
@@ -11,7 +11,7 @@
|
|
static struct ggml_backend_feature * getNextBackendFeatures(struct ggml_backend_feature * feature) { return &feature[1];}
|
|
|
|
typedef enum {COMP_UNKNOWN,COMP_GCC,COMP_CLANG} COMPILER;
|
|
-COMPILER inline get_compiler() {
|
|
+static inline COMPILER get_compiler() {
|
|
#if defined(__clang__)
|
|
return COMP_CLANG;
|
|
#elif defined(__GNUC__)
|