shithub: orca

Download patch

ref: a6613389471d992d14aa962fe69c242ecda9c2fc
parent: 8cfd5d9761aa9d106e211a62511637d333b6d33a
author: cancel <cancel@cancel.fm>
date: Wed Jan 8 01:28:07 EST 2020

Cleanup

--- a/thirdparty/sdd.c
+++ b/thirdparty/sdd.c
@@ -51,7 +51,7 @@
 
 #define SDD_HDR(s) ((sdd_header *)s - 1)
 
-#if defined(__GNUC__) || defined(__clang__)
+#if (defined(__GNUC__) || defined(__clang__)) && defined(__has_attribute)
 #if __has_attribute(noinline) && __has_attribute(noclone)
 #define SDD_NOINLINE __attribute__((noinline, noclone))
 #elif __has_attribute(noinline)
--- a/thirdparty/sdd.h
+++ b/thirdparty/sdd.h
@@ -2,7 +2,7 @@
 #include <stdarg.h>
 #include <stddef.h>
 
-#ifdef __GNUC__
+#if (defined(__GNUC__) || defined(__clang__)) && defined(__has_attribute)
 #if __has_attribute(format)
 #define SDD_PRINTF(n1, n2) __attribute__((format(printf, n1, n2)))
 #endif