From cd9244ab158c8f73b76351b4963e6ebd176cff57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 27 May 2015 16:12:52 -0700 Subject: [PATCH] Define STBTT_DEF extern when STBTT not compiled with ImGui. --- imgui.cpp | 2 ++ 1 file changed, 2 insertions(+) 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"