aboutsummaryrefslogtreecommitdiff
path: root/src/wopl
diff options
context:
space:
mode:
authorCacodemon345 <wahil1976@outlook.com>2021-02-09 23:36:19 +0600
committerVitaly Novichkov <Wohlstand@users.noreply.github.com>2021-02-09 20:39:07 +0300
commit7dc9d86c7ae316be690a000fb8e03ab229fcaa21 (patch)
tree907fea1d275f1be3b2cb99cd63992ae6531612a7 /src/wopl
parentc375ab993e3eb4c04e5407580c03891d3c30baf8 (diff)
downloadlibADLMIDI-7dc9d86c7ae316be690a000fb8e03ab229fcaa21.tar.gz
libADLMIDI-7dc9d86c7ae316be690a000fb8e03ab229fcaa21.tar.bz2
libADLMIDI-7dc9d86c7ae316be690a000fb8e03ab229fcaa21.zip
Fix compilation on Solaris
Diffstat (limited to 'src/wopl')
-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