diff options
author | gumi <git@gumi.ca> | 2019-01-10 18:30:38 -0500 |
---|---|---|
committer | gumi <git@gumi.ca> | 2019-01-11 12:03:47 -0500 |
commit | 2f94539545b176a7dc2981b1a932b8428e33eaa7 (patch) | |
tree | 2124205fc141ceaf98253f1ab1f515e8eb44889a /src/io/cxxstdio.hpp | |
parent | d8145c4f940a664eb403f7acca10f2caf86e5330 (diff) | |
download | tmwa-2f94539545b176a7dc2981b1a932b8428e33eaa7.tar.gz tmwa-2f94539545b176a7dc2981b1a932b8428e33eaa7.tar.bz2 tmwa-2f94539545b176a7dc2981b1a932b8428e33eaa7.tar.xz tmwa-2f94539545b176a7dc2981b1a932b8428e33eaa7.zip |
drop support for gcc-5, gcc-6, clang-4, clang-5 in travis and fix some misc issues
Diffstat (limited to 'src/io/cxxstdio.hpp')
-rw-r--r-- | src/io/cxxstdio.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/io/cxxstdio.hpp b/src/io/cxxstdio.hpp index 7312382..08c9a53 100644 --- a/src/io/cxxstdio.hpp +++ b/src/io/cxxstdio.hpp @@ -81,14 +81,14 @@ namespace cxxstdio } }; -#define XPRINTF(out, fmt, ...) \ - ({ \ - struct format_impl \ - { \ - constexpr static \ - FormatString print_format() { return fmt; } \ - }; \ - cxxstdio::PrintFormatter<format_impl>::print(out, ## __VA_ARGS__); \ +#define XPRINTF(out, fmt, ...) \ + ({ \ + struct format_impl \ + { \ + constexpr static \ + FormatString print_format() __asm__("_print_format") { return fmt; } \ + }; \ + cxxstdio::PrintFormatter<format_impl>::print(out, ## __VA_ARGS__); \ }) #define FPRINTF(file, fmt, ...) XPRINTF(/*no_cast<FILE *>*/(file), fmt, ## __VA_ARGS__) |