Browse Source

Cleanup

master
cancel 5 years ago
parent
commit
a661338947
  1. 2
      thirdparty/sdd.c
  2. 2
      thirdparty/sdd.h

2
thirdparty/sdd.c

@ -51,7 +51,7 @@ typedef struct sdd {
#define SDD_HDR(s) ((sdd_header *)s - 1) #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) #if __has_attribute(noinline) && __has_attribute(noclone)
#define SDD_NOINLINE __attribute__((noinline, noclone)) #define SDD_NOINLINE __attribute__((noinline, noclone))
#elif __has_attribute(noinline) #elif __has_attribute(noinline)

2
thirdparty/sdd.h

@ -2,7 +2,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stddef.h> #include <stddef.h>
#ifdef __GNUC__ #if (defined(__GNUC__) || defined(__clang__)) && defined(__has_attribute)
#if __has_attribute(format) #if __has_attribute(format)
#define SDD_PRINTF(n1, n2) __attribute__((format(printf, n1, n2))) #define SDD_PRINTF(n1, n2) __attribute__((format(printf, n1, n2)))
#endif #endif

Loading…
Cancel
Save