From 7303f40b2eb4d92346102c64f56f5775bde4c39a Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Thu, 6 Jun 2019 10:18:35 +0800 Subject: [PATCH] add static for inline function to avoid duplicated definitions when using old GCC --- include/gdi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gdi.h b/include/gdi.h index 35ea01a4..eb22baad 100644 --- a/include/gdi.h +++ b/include/gdi.h @@ -8018,7 +8018,7 @@ MG_EXPORT HDC GUIAPI InitSlaveScreenEx (const char* name, const char* mode, int * * \return Valid handle on success, HDC_INVALID on failure. */ -inline HDC InitSlaveScreen (const char* name, const char* mode) +static inline HDC InitSlaveScreen (const char* name, const char* mode) { return InitSlaveScreenEx(name, mode, GDCAP_DPI_DEFAULT); }