check in work in progress on the arm port
[newos.git] / include / libc / sys / cdefs.h
blob0ffc9b244a514c9daca237425b4cbb474c5a4205
1 /*
2 ** Copyright 2001, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
5 #ifndef _CDEFS_H
6 #define _CDEFS_H
8 #ifdef __GNUC__
9 # define __PRINTFLIKE(__fmt,__varargs) __attribute__((__format__ (__printf__, __fmt, __varargs)))
10 # define __SCANFLIKE(__fmt,__varargs) __attribute__((__format__ (__scanf__, __fmt, __varargs)))
11 # define __PURE __attribute__((__const__))
12 #else
13 # define __PRINTFLIKE(__fmt,__varargs)
14 # define __SCANFLIKE(__fmt,__varargs)
15 # define __PURE
16 #endif
18 #endif