mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
os.h: fix _X_ATTRIBUTE_VPRINTF() macro on MacOS and FreeBSD
their compiler doesn't seem to support gnu_printf attribute. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
ae689438dc
commit
19f015d8e6
@@ -70,7 +70,7 @@ SOFTWARE.
|
||||
#endif
|
||||
|
||||
#ifndef _X_ATTRIBUTE_VPRINTF
|
||||
# if defined(__GNUC__) && (__GNUC__ >= 2)
|
||||
# if defined(__GNUC__) && (__GNUC__ >= 2) && (!defined(__APPLE__)) && (!defined(__FreeBSD__))
|
||||
# define _X_ATTRIBUTE_VPRINTF(fmt, firstarg) \
|
||||
__attribute__((__format__(gnu_printf, fmt, firstarg)))
|
||||
# else
|
||||
|
||||
Reference in New Issue
Block a user