diff --git a/imgui.cpp b/imgui.cpp index ea70d5928..3b1e4dca5 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -474,6 +474,8 @@ namespace IMGUI_STB_NAMESPACE #ifndef IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION #define STBTT_STATIC #define STB_TRUETYPE_IMPLEMENTATION +#else +#define STBTT_DEF extern #endif #include "stb_truetype.h"