From e3715460245dde7032bf2302ca4b0e9cea7b3e51 Mon Sep 17 00:00:00 2001 From: Li Linfeng Date: Thu, 10 Oct 2019 17:49:25 +0800 Subject: [PATCH] check gettext exists before include --- macosx/Util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macosx/Util.h b/macosx/Util.h index 1f338bc02..9eb5fb759 100644 --- a/macosx/Util.h +++ b/macosx/Util.h @@ -6,8 +6,9 @@ // Copyright 2005 Chris Laurel. All rights reserved. // +#if __has_include() #include -#ifndef gettext +#else #include "POSupport.h" #define gettext(s) localizedUTF8String(s) #define dgettext(d,s) localizedUTF8StringWithDomain(d,s)