diff options
Diffstat (limited to 'src/macros.h')
| -rw-r--r-- | src/macros.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h index 00e80a6..71aa137 100644 --- a/src/macros.h +++ b/src/macros.h @@ -30,4 +30,10 @@ #define L2_URL_META_BASE "https://piston-meta.mojang.com" #define L2_URL_META_VERSION_MANIFEST L2_URL_META_BASE "/mc/game/version_manifest_v2.json" +#ifdef __GNUC__ +#define L2_FORMAT(_flavor, _stridx, _argidx) __attribute__((format (_flavor, _stridx, _argidx))) +#else +#define L2_FORMAT(_unused1, _unused2, _unused3) +#endif + #endif /* include guard */ |
