diff --git a/imgui.cpp b/imgui.cpp index 26d91908c..4b4ca3a68 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"