summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/msgfmt.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-03-31 20:34:28 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:19 +0200
commit2784ad9f09ef6d0db9cc917ed984a5e13df7703f (patch)
tree8f6c902b44505ed1cd8bf0f8e22ab35d3034af05 /gettext-tools/src/msgfmt.c
parentd41822386cbd5e0aadef581229896e58f2f1e459 (diff)
downloadexternal_gettext-2784ad9f09ef6d0db9cc917ed984a5e13df7703f.zip
external_gettext-2784ad9f09ef6d0db9cc917ed984a5e13df7703f.tar.gz
external_gettext-2784ad9f09ef6d0db9cc917ed984a5e13df7703f.tar.bz2
More Woe32/MSVC support.
Diffstat (limited to 'gettext-tools/src/msgfmt.c')
-rw-r--r--gettext-tools/src/msgfmt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gettext-tools/src/msgfmt.c b/gettext-tools/src/msgfmt.c
index 29c0a98..322f078 100644
--- a/gettext-tools/src/msgfmt.c
+++ b/gettext-tools/src/msgfmt.c
@@ -56,6 +56,14 @@
#define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
+/* Some platforms don't have the sigjmp_buf type in <setjmp.h>. */
+#if defined _MSC_VER || defined __MINGW32__
+/* Native Woe32 API. */
+# define sigjmp_buf jmp_buf
+# define sigsetjmp(env,savesigs) setjmp (env)
+# define siglongjmp longjmp
+#endif
+
/* We use siginfo to get precise information about the signal.
But siginfo doesn't work on Irix 6.5. */
#if HAVE_SIGINFO && !defined (__sgi)