diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-04-26 10:17:48 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-04-27 16:22:37 +0200 |
commit | c6a0487b1fc29bc6047da0e484f79d4d627f9018 (patch) | |
tree | 628d671b15657dc355aa938c911f4de229757b41 /hw/rtl8139.c | |
parent | 430a3c18064fd3c007048d757e8bd0fff45fcc99 (diff) |
rtl8139: Fix compilation for w32/w64
Compilation for Windows needs a different declaration for the
printf format attribute, so use the macro which was defined for
this purpose.
Cc: Benjamin Poirier <benjamin.poirier@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/rtl8139.c')
-rw-r--r-- | hw/rtl8139.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/rtl8139.c b/hw/rtl8139.c index cbf667a301..515652f270 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -88,8 +88,7 @@ # define DPRINTF(fmt, ...) \ do { fprintf(stderr, "RTL8139: " fmt, ## __VA_ARGS__); } while (0) #else -static inline __attribute__ ((format (printf, 1, 2))) - int DPRINTF(const char *fmt, ...) +static inline GCC_FMT_ATTR(1, 2) int DPRINTF(const char *fmt, ...) { return 0; } |