aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-11-05 04:41:17 -0800
committerChris Robinson <[email protected]>2020-11-05 04:41:17 -0800
commit40c92c4643193d09c2fd90a5b3df4fe57230a789 (patch)
tree978f9facb09fb97bd721aaa73865de92b5581b34
parentc0cbe602ce66481a822ba16856052a47154f5cc5 (diff)
Simplify the [u]int64_t typedef header check
And include the correct header
-rw-r--r--include/AL/alext.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/AL/alext.h b/include/AL/alext.h
index ef5e8cb6..57c71cb3 100644
--- a/include/AL/alext.h
+++ b/include/AL/alext.h
@@ -23,18 +23,15 @@
#include <stddef.h>
/* Define int64_t and uint64_t types */
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
-#include <inttypes.h>
-#elif defined(__cplusplus) && __cplusplus >= 201103L
-#include <cinttypes>
-#elif defined(_WIN32) && defined(__GNUC__)
+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
+ (defined(__cplusplus) && __cplusplus >= 201103L)
#include <stdint.h>
#elif defined(_WIN32)
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
/* Fallback if nothing above works */
-#include <inttypes.h>
+#include <stdint.h>
#endif
#include "alc.h"