check gettext exists before include

pull/439/head
Li Linfeng 2019-10-10 17:49:25 +08:00
parent cb2fbd0b8c
commit e371546024
1 changed files with 2 additions and 1 deletions

View File

@ -6,8 +6,9 @@
// Copyright 2005 Chris Laurel. All rights reserved.
//
#if __has_include(<libintl.h>)
#include <libintl.h>
#ifndef gettext
#else
#include "POSupport.h"
#define gettext(s) localizedUTF8String(s)
#define dgettext(d,s) localizedUTF8StringWithDomain(d,s)