Browse Source

[core] define __attribute_unused__ if needed

master
Glenn Strauss 6 months ago
parent
commit
d4c1855578
  1. 9
      src/first.h

9
src/first.h

@ -189,5 +189,14 @@
#endif
#endif
#ifndef __attribute_unused__
#if __has_attribute(unused) \
|| __GNUC_PREREQ(2,95)
#define __attribute_unused__ __attribute__((__unused__))
#else
#define __attribute_unused__
#endif
#endif
#endif

Loading…
Cancel
Save