add mi_cdecl to functions to avoid errors when compiling with a different calling convention, see PR #592

This commit is contained in:
daan 2022-10-31 12:16:34 -07:00
parent 698bb2cae7
commit c4663463d1
3 changed files with 8 additions and 8 deletions

View file

@ -267,7 +267,7 @@ static void mi_buffered_flush(buffered_t* buf) {
buf->used = 0;
}
static void mi_buffered_out(const char* msg, void* arg) {
static void mi_cdecl mi_buffered_out(const char* msg, void* arg) {
buffered_t* buf = (buffered_t*)arg;
if (msg==NULL || buf==NULL) return;
for (const char* src = msg; *src != 0; src++) {