aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wopl/wopl_file.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wopl/wopl_file.h b/src/wopl/wopl_file.h
index ab8f996..c0e49f2 100644
--- a/src/wopl/wopl_file.h
+++ b/src/wopl/wopl_file.h
@@ -34,11 +34,14 @@ extern "C" {
#if !defined(__STDC_VERSION__) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ < 199901L)) \
|| defined(__STRICT_ANSI__) || !defined(__cplusplus)
+/* Solaris defines the integer types regardless of what C/C++ standard is actually available, so avoid defining them at all by ourselves. */
+#ifndef __sun
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef signed short int int16_t;
typedef unsigned short int uint16_t;
#endif
+#endif
/* Global OPL flags */
typedef enum WOPLFileFlags