about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
Diffstat (limited to 'converter')
-rw-r--r--converter/other/jpeg2000/jpeg2ktopam.c3
-rw-r--r--converter/other/jpeg2000/pamtojpeg2k.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/converter/other/jpeg2000/jpeg2ktopam.c b/converter/other/jpeg2000/jpeg2ktopam.c
index d6ea580c..e11e9fb4 100644
--- a/converter/other/jpeg2000/jpeg2ktopam.c
+++ b/converter/other/jpeg2000/jpeg2ktopam.c
@@ -9,7 +9,8 @@
 *****************************************************************************/
 
 #define _BSD_SOURCE 1      /* Make sure strdup() is in string.h */
-#define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
+/* Make sure strdup() is in string.h and int_fast32_t is in inttypes.h */
+#define _XOPEN_SOURCE 600
 #include <string.h>
 
 #include "pam.h"
diff --git a/converter/other/jpeg2000/pamtojpeg2k.c b/converter/other/jpeg2000/pamtojpeg2k.c
index 76da46d2..851d2bf9 100644
--- a/converter/other/jpeg2000/pamtojpeg2k.c
+++ b/converter/other/jpeg2000/pamtojpeg2k.c
@@ -9,7 +9,8 @@
 *****************************************************************************/
 
 #define _BSD_SOURCE 1    /* Make sure strdup() is in string.h */
-#define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
+/* Make sure strdup() is in string.h and int_fast32_t is in inttypes.h */
+#define _XOPEN_SOURCE 600
 #include <string.h>
 
 #include "pam.h"