check gettext exists before include
parent
cb2fbd0b8c
commit
e371546024
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue