summaryrefslogtreecommitdiff
path: root/boost/locale
diff options
context:
space:
mode:
Diffstat (limited to 'boost/locale')
-rw-r--r--boost/locale/message.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/boost/locale/message.hpp b/boost/locale/message.hpp
index ec8f99f280..a56bb8ada3 100644
--- a/boost/locale/message.hpp
+++ b/boost/locale/message.hpp
@@ -20,6 +20,13 @@
#include <memory>
#include <boost/locale/formatting.hpp>
+// glibc < 2.3.4 declares those as macros if compiled with optimization turned on
+#ifdef gettext
+# undef gettext
+# undef ngettext
+# undef dgettext
+# undef dngettext
+#endif
namespace boost {
namespace locale {