diff options
| author | 2025-06-27 16:20:32 +0200 | |
|---|---|---|
| committer | 2025-06-27 16:20:32 +0200 | |
| commit | 0aa3cbdc82b45e19ac9bac42397b9b8f123a521a (patch) | |
| tree | 930a0ecfd5f59417a333724e2c7ad1547f5b96a1 /src | |
| parent | 8d0563380db8f3412de1fabf5ad74ccde1159eac (diff) | |
| download | idevicerestore-0aa3cbdc82b45e19ac9bac42397b9b8f123a521a.tar.gz idevicerestore-0aa3cbdc82b45e19ac9bac42397b9b8f123a521a.tar.bz2 | |
log: Make sure to only add compiler attribute for supported compilers
Diffstat (limited to 'src')
| -rw-r--r-- | src/log.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -152,7 +152,12 @@ void logger(enum loglevel level, const char *fmt, ...) mutex_unlock(&log_mutex); } +#if defined(__GNUC__) || defined(__clang__) static void print_funcf(enum loglevel level, const char* fmt, ...) __attribute__ ((format (printf, 2, 3))); +#else +static void print_funcf(enum loglevel level, const char* fmt, ...); +#endif + static void print_funcf(enum loglevel level, const char* fmt, ...) { va_list ap; |
