diff options
Diffstat (limited to 'src/util/format.h')
| -rw-r--r-- | src/util/format.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/format.h b/src/util/format.h index 3066173e1..80d79c28a 100644 --- a/src/util/format.h +++ b/src/util/format.h @@ -13,7 +13,7 @@ #define SEEN_INKSCAPE_UTIL_FORMAT_H #include <stdarg.h> -#include <glib/gstrfuncs.h> +#include <glib.h> #include "util/share.h" namespace Inkscape { @@ -27,6 +27,8 @@ inline ptr_shared<char> vformat(char const *format, va_list args) { return result; } + // needed since G_GNUC_PRINTF can only be used on a declaration + ptr_shared<char> format(char const *format, ...) G_GNUC_PRINTF(1,2); inline ptr_shared<char> format(char const *format, ...) { va_list args; |
