Initial commit
This commit is contained in:
14
util.h
Normal file
14
util.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef INCLUDED_MACRO_H
|
||||
#define INCLUDED_MACRO_H
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_attribute(format)
|
||||
# define ATTR_FORMAT(...) __attribute__((format(printf, __VA_ARGS__)))
|
||||
#else
|
||||
# define ATTR_FORMAT(...)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user