diff --git a/src/mappings.h b/src/mappings.h index 60ef141..4255c69 100644 --- a/src/mappings.h +++ b/src/mappings.h @@ -52,16 +52,16 @@ struct int_string_map extern struct int_string_map const c_dns_rcode_enum[]; -extern char const *dns_rcode_enum (dns_rcode_t) __attribute__ ((pure,nothrow)); -extern char const *dns_rcode_text (dns_rcode_t) __attribute__ ((pure,nothrow)); -extern char const *dns_type_text (dns_type_t) __attribute__ ((pure,nothrow)); -extern char const *dns_class_text (dns_class_t) __attribute__ ((pure,nothrow)); -extern char const *dns_op_text (dns_op_t) __attribute__ ((pure,nothrow)); +WIN_DLL_EXPORT extern char const *dns_rcode_enum (dns_rcode_t) __attribute__ ((pure,nothrow)); +WIN_DLL_EXPORT extern char const *dns_rcode_text (dns_rcode_t) __attribute__ ((pure,nothrow)); +WIN_DLL_EXPORT extern char const *dns_type_text (dns_type_t) __attribute__ ((pure,nothrow)); +WIN_DLL_EXPORT extern char const *dns_class_text (dns_class_t) __attribute__ ((pure,nothrow)); +WIN_DLL_EXPORT extern char const *dns_op_text (dns_op_t) __attribute__ ((pure,nothrow)); -extern dns_rcode_t dns_rcode_value (char const *) __attribute__ ((pure,nothrow,nonnull)); +WIN_DLL_EXPORT extern dns_rcode_t dns_rcode_value (char const *) __attribute__ ((pure,nothrow,nonnull)); WIN_DLL_EXPORT extern dns_type_t dns_type_value (char const *) __attribute__ ((pure,nothrow,nonnull)); -extern dns_class_t dns_class_value (char const *) __attribute__ ((pure,nothrow,nonnull)); -extern dns_op_t dns_op_value (char const *) __attribute__ ((pure,nothrow,nonnull)); +WIN_DLL_EXPORT extern dns_class_t dns_class_value (char const *) __attribute__ ((pure,nothrow,nonnull)); +WIN_DLL_EXPORT extern dns_op_t dns_op_value (char const *) __attribute__ ((pure,nothrow,nonnull)); #ifdef __cplusplus } diff --git a/src/output.h b/src/output.h index 7ee0cb0..1eddc04 100644 --- a/src/output.h +++ b/src/output.h @@ -39,11 +39,11 @@ #include #include "dns.h" -extern void dns_print_result (dns_query_t *); -extern void dns_print_header (dns_query_t *); -extern void dns_print_question (char const *,dns_question_t *,size_t); -extern void dns_print_answer (char const *,dns_answer_t *,size_t); -extern void dns_dump_memory (FILE *,void const *,size_t,size_t); +WIN_DLL_EXPORT extern void dns_print_result (dns_query_t *); +WIN_DLL_EXPORT extern void dns_print_header (dns_query_t *); +WIN_DLL_EXPORT extern void dns_print_question (char const *,dns_question_t *,size_t); +WIN_DLL_EXPORT extern void dns_print_answer (char const *,dns_answer_t *,size_t); +WIN_DLL_EXPORT extern void dns_dump_memory (FILE *,void const *,size_t,size_t); #ifdef __cplusplus }