Commit 8348c6b2 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Define __has_attribute if not using clang

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 22d2d34d
......@@ -3,6 +3,10 @@
#ifndef GIRARA_MACROS_H
#define GIRARA_MACROS_H
#ifndef __has_attribute
#define __has_attribute(x) 0
#endif
#ifndef GIRARA_PRINTF
# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) || defined(__clang__)
# define GIRARA_PRINTF(format_idx, arg_idx) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment