common.h

Go to the documentation of this file.
00001 
00015 #ifndef LDNS_COMMON_H
00016 #define LDNS_COMMON_H
00017 
00018 #if !defined(__cplusplus) && !defined(__bool_true_false_are_defined)
00019 
00020 #if defined(HAVE_STDBOOL_H)
00021 #include <stdbool.h>
00022 #else
00023 
00024 /*@ignore@*/
00025 /* splint barfs on this construct */
00026 typedef unsigned char bool;
00027 #define bool bool
00028 #define false 0
00029 #define true  1
00030 #define __bool_true_false_are_defined 1
00031 /*@end@*/
00032 
00033 #endif
00034 
00035 #endif
00036 
00037 #ifdef HAVE_ATTR_FORMAT
00038 #define ATTR_FORMAT(archetype, string_index, first_to_check) \
00039     __attribute__ ((format (archetype, string_index, first_to_check)))
00040 #else /* !HAVE_ATTR_FORMAT */
00041 #define ATTR_FORMAT(archetype, string_index, first_to_check) /* empty */
00042 #endif /* !HAVE_ATTR_FORMAT */
00043 
00044 #endif /* LDNS_COMMON_H */

Generated on Wed Feb 20 20:23:44 2008 for ldns by  doxygen 1.5.5