summaryrefslogtreecommitdiffstats
path: root/src/patchage_config.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-23 00:52:14 -0400
committerDavid Robillard <d@drobilla.net>2022-08-23 01:20:56 -0400
commit496f3eb577739bf667665efc490e583baa45eb2e (patch)
treef4a2f77c684215c1639525014a264f9bf11e0d4f /src/patchage_config.h
parentd39dbde2d05ae1c3483b311f0890fb97b35b5716 (diff)
downloadpatchage-496f3eb577739bf667665efc490e583baa45eb2e.tar.gz
patchage-496f3eb577739bf667665efc490e583baa45eb2e.tar.bz2
patchage-496f3eb577739bf667665efc490e583baa45eb2e.zip
Add i18n support
Diffstat (limited to 'src/patchage_config.h')
-rw-r--r--src/patchage_config.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/patchage_config.h b/src/patchage_config.h
index e5f56df..6c3ad90 100644
--- a/src/patchage_config.h
+++ b/src/patchage_config.h
@@ -46,6 +46,19 @@
# endif
# endif
+// GNU gettext()
+# ifndef HAVE_GETTEXT
+# ifdef __has_include
+# if __has_include(<libintl.h>)
+# define HAVE_GETTEXT 1
+# else
+# define HAVE_GETTEXT 0
+# endif
+# else
+# define HAVE_GETTEXT 0
+# endif
+# endif
+
// JACK metadata API
# ifndef HAVE_JACK_METADATA
# ifdef __has_include
@@ -75,6 +88,12 @@
# define USE_DLADDR 0
#endif
+#if HAVE_GETTEXT
+# define USE_GETTEXT 1
+#else
+# define USE_GETTEXT 0
+#endif
+
#if HAVE_JACK_METADATA
# define USE_JACK_METADATA 1
#else