Use libintl.h on all platforms

pull/231/head
Hleb Valoshka 2019-02-07 23:54:20 +03:00
parent 0fc5edf500
commit d666e76e6e
1 changed files with 1 additions and 16 deletions

View File

@ -15,6 +15,7 @@
#include <string>
#include <iostream>
#include <functional>
#include <libintl.h>
// gettext / libintl setup
#ifndef _ /* unless somebody already took care of this */
@ -25,9 +26,6 @@
#endif
#ifdef _WIN32
#include "libintl.h"
// POSIX provides an extension to printf family to reorder their arguments,
// so GNU GetText provides own replacement for them on windows platform
#ifdef fprintf
@ -39,19 +37,6 @@
#ifdef sprintf
#undef sprintf
#endif
#elif defined(TARGET_OS_MAC)
#ifndef gettext
#include "POSupport.h"
#define gettext(s) localizedUTF8String(s)
#define dgettext(d,s) localizedUTF8StringWithDomain(d,s)
#endif
#else
#include <libintl.h>
#endif
extern int compareIgnoringCase(const std::string& s1, const std::string& s2);