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
00025
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
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
00041 #define ATTR_FORMAT(archetype, string_index, first_to_check)
00042 #endif
00043
00044 #endif