Math Processor Unit Library

libmpu – library of arithmetic functions for integer, real, and complex numbers of increased digit capacity

16 Commits   0 Branches   2 Tags
author: kx <kx@radix-linux.su> 2024-12-20 16:11:07 +0300 committer: kx <kx@radix-linux.su> 2024-12-20 16:11:07 +0300 commit: 868b2b66b564b5c00e3a74d10be45db7151627ac parent: cce2ae8d3312493b7653358bb4af201d3271377b
Commit Summary:
Version 1.0.14
Diffstat:
1 file changed, 25 insertions, 0 deletions
diff --git a/nls.h b/nls.h
new file mode 100644
index 0000000..e16320c
--- /dev/null
+++ b/nls.h
@@ -0,0 +1,31 @@
+
+#ifndef __SUPPORT_NLS__
+#define __SUPPORT_NLS__   1
+
+#if ENABLE_NLS == 1
+#ifndef _
+#  include <gettext.h>
+#  ifndef _
+#    define _(msgid)     gettext( msgid )
+#  endif
+#  ifdef gettext_noop
+#    define N_(msgid)    gettext_noop( msgid )
+#  else
+#    define N_(msgid)    (msgid)
+#  endif
+#  ifdef ngettext
+#    define Q_(msgid1, msgid2, N)    ngettext( msgid1, msgid2, N )
+#  else
+#    define Q_(msgid1, msgid2, N)    gettext( msgid2, N )
+#  endif
+#endif /* !_ */
+
+#else
+
+#  define _(msgid)                (msgid)
+#  define N_(msgid)               (msgid)
+#  define Q_(msgid1, msgid2, N)   (msgid2, N)
+
+#endif
+
+#endif /* __SUPPORT_NLS__ */