VSM C++ SDK
Vehicle Specific Modules SDK
defs.h
Go to the documentation of this file.
1 // Copyright (c) 2014, Smart Projects Holdings Ltd
2 // All rights reserved.
3 // See LICENSE file for license details.
4 
10 #ifndef DEFS_H_
11 #define DEFS_H_
12 
16 //XXX ifdef GCC
17 #ifdef __unix__
18 #define __FORMAT(type, fmt_idx, arg_idx) \
19  __attribute__ ((format(type, fmt_idx, arg_idx)))
20 #else /* __unix__ */
21 /* Windows has improper size of long type which causes undesired warning.
22  * Disable format validation there.
23  */
24 #define __FORMAT(type, fmt_idx, arg_idx)
25 #endif /* __unix__ */
26 
30 #define __UNUSED __attribute__((unused))
31 
35 #define __PACKED __attribute__((packed))
36 
37 #endif /* DEFS_H_ */