fix implicit function declaration (#53)

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
This commit is contained in:
Pascal J 2023-04-23 20:37:42 +02:00 committed by GitHub
parent bf035bf3d5
commit 7d3da7e968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ add_project_arguments(cc.get_supported_arguments([
'-Wno-missing-field-initializers',
'-Wno-unused-parameter',
'-D_POSIX_C_SOURCE=200809L',
'-D_GNU_SOURCE',
]), language: 'c')
prefix = get_option('prefix')

View File

@ -1,3 +1,4 @@
#include <stdio.h>
#include "utils.h"
char *getFormat(const char *fmt, ...) {
@ -9,4 +10,4 @@ char *getFormat(const char *fmt, ...) {
va_end(args);
return outputStr;
}
}