Skip to content

Commit

Permalink
fix printf macro
Browse files Browse the repository at this point in the history
  • Loading branch information
guusw committed Oct 2, 2021
1 parent 677fe33 commit 35b6ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui.h
Expand Up @@ -92,7 +92,7 @@ Index of this file:
#endif

// Helper Macros - IM_FMTARGS, IM_FMTLIST: Apply printf-style warnings to our formatting functions.
#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__)
#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__)
#define IM_FMTARGS(FMT) __attribute__((format(gnu_printf, FMT, FMT+1)))
#define IM_FMTLIST(FMT) __attribute__((format(gnu_printf, FMT, 0)))
#elif !defined(IMGUI_USE_STB_SPRINTF) && (defined(__clang__) || defined(__GNUC__))
Expand Down

0 comments on commit 35b6ee1

Please sign in to comment.