summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2021-11-07 10:20:16 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2021-11-07 10:20:16 -0500
commit7f4b9bfbc9c779d542e93d46614c798d3327d95c (patch)
treede625e2ae213dd5463d1a20866c386aac41709d6 /include
parentc693377ed334ad339ac3315a71fa6c38465dfc19 (diff)
downloadfreetype2-7f4b9bfbc9c779d542e93d46614c798d3327d95c.tar.gz
[dlg] Define DLG_STATIC explicitly.
DLG_STATIC is intended to disable Windows DLL linking attributes. It does not hurt to define it explicitly when we wrap DLG code. This fixes tons of LNK4286 and C4273 warnings from MSVC if we forget to define DLG_STATIC as a compiler option. * builds/windows/vc2010/freetype.vcxproj: Remove DLG_STATIC option. * src/dlg/dlgwrap.c [FT_DEBUG_LOGGING]: Define DLG_STATIC. * include/freetype/internal/ftdebug.h [FT_DEBUG_LOGGING]: Ditto.
Diffstat (limited to 'include')
-rw-r--r--include/freetype/internal/ftdebug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/freetype/internal/ftdebug.h b/include/freetype/internal/ftdebug.h
index b9787a709..5e8d9294a 100644
--- a/include/freetype/internal/ftdebug.h
+++ b/include/freetype/internal/ftdebug.h
@@ -32,6 +32,7 @@
#include "compiler-macros.h"
#ifdef FT_DEBUG_LOGGING
+#define DLG_STATIC
#include <dlg/output.h>
#include <dlg/dlg.h>