Skip to content

Commit

Permalink
Merge pull request #109 from sthibaul/gcc-14
Browse files Browse the repository at this point in the history
Fix callback type
  • Loading branch information
egli authored Jul 8, 2024
2 parents d153472 + 3ccf225 commit b8f2dfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/Jliblouisutdml.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ JNIEXPORT void JNICALL Java_org_liblouis_LibLouis_setLogLevel
}

static jobject louLogCBFunc;
static void javaLouLogCallback(int level, const char *message)
static void javaLouLogCallback(logLevels level, const char *message)
{
execJavaLogCallback(louLogCBFunc, level, message);
}
Expand Down Expand Up @@ -1340,7 +1340,7 @@ JNIEXPORT void JNICALL Java_org_liblouis_LibLouisUTDML_logEnd
}

static jobject lbuLogCBFunc;
static void javaLbuLogCallbackFunc(int level, const char *message)
static void javaLbuLogCallbackFunc(logLevels level, const char *message)
{
execJavaLogCallback(lbuLogCBFunc, level, message);
}
Expand Down

0 comments on commit b8f2dfa

Please sign in to comment.