GLK: Use MSVC_PRINTF when GCC_PRINTF is used

This commit is contained in:
Donovan Watteau 2022-11-25 17:51:54 +01:00 committed by Eugene Sandulenko
parent 95c755e8a3
commit 5d23261964
3 changed files with 7 additions and 7 deletions

View File

@ -63,9 +63,9 @@ typedef void (*sc_write_callbackref_t)(void *, const sc_byte *, sc_int);
/*
* Small utility and wrapper functions.
*/
extern void sc_trace(const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void sc_error(const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void sc_fatal(const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void sc_trace(MSVC_PRINTF const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void sc_error(MSVC_PRINTF const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void sc_fatal(MSVC_PRINTF const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void *sc_malloc(size_t size);
extern void *sc_realloc(void *pointer, size_t size);
extern void sc_free(void *pointer);

View File

@ -49,9 +49,9 @@ typedef struct sx_test_descriptor_s {
/*
* Small utility and wrapper functions.
*/
extern void sx_trace(const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void sx_error(const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void sx_fatal(const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void sx_trace(MSVC_PRINTF const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void sx_error(MSVC_PRINTF const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void sx_fatal(MSVC_PRINTF const sc_char *format, ...) GCC_PRINTF(1, 2);
extern void *sx_malloc(size_t size);
extern void *sx_realloc(void *pointer, size_t size);
extern void sx_free(void *pointer);

View File

@ -61,7 +61,7 @@ public:
return *this;
}
static String format(const char *fmt, ...) GCC_PRINTF(1, 2);
static String format(MSVC_PRINTF const char *fmt, ...) GCC_PRINTF(1, 2);
static String vformat(const char *fmt, va_list args);