Skip to content

Commit b989934

Browse files
Merge pull request #3 from magicinternet/export-all-functions
Added export attribute to all the functions
2 parents 7221a89 + e2c2798 commit b989934

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

src/mappings.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ struct int_string_map
5252

5353
extern struct int_string_map const c_dns_rcode_enum[];
5454

55-
extern char const *dns_rcode_enum (dns_rcode_t) __attribute__ ((pure,nothrow));
56-
extern char const *dns_rcode_text (dns_rcode_t) __attribute__ ((pure,nothrow));
57-
extern char const *dns_type_text (dns_type_t) __attribute__ ((pure,nothrow));
58-
extern char const *dns_class_text (dns_class_t) __attribute__ ((pure,nothrow));
59-
extern char const *dns_op_text (dns_op_t) __attribute__ ((pure,nothrow));
55+
WIN_DLL_EXPORT extern char const *dns_rcode_enum (dns_rcode_t) __attribute__ ((pure,nothrow));
56+
WIN_DLL_EXPORT extern char const *dns_rcode_text (dns_rcode_t) __attribute__ ((pure,nothrow));
57+
WIN_DLL_EXPORT extern char const *dns_type_text (dns_type_t) __attribute__ ((pure,nothrow));
58+
WIN_DLL_EXPORT extern char const *dns_class_text (dns_class_t) __attribute__ ((pure,nothrow));
59+
WIN_DLL_EXPORT extern char const *dns_op_text (dns_op_t) __attribute__ ((pure,nothrow));
6060

61-
extern dns_rcode_t dns_rcode_value (char const *) __attribute__ ((pure,nothrow,nonnull));
61+
WIN_DLL_EXPORT extern dns_rcode_t dns_rcode_value (char const *) __attribute__ ((pure,nothrow,nonnull));
6262
WIN_DLL_EXPORT extern dns_type_t dns_type_value (char const *) __attribute__ ((pure,nothrow,nonnull));
63-
extern dns_class_t dns_class_value (char const *) __attribute__ ((pure,nothrow,nonnull));
64-
extern dns_op_t dns_op_value (char const *) __attribute__ ((pure,nothrow,nonnull));
63+
WIN_DLL_EXPORT extern dns_class_t dns_class_value (char const *) __attribute__ ((pure,nothrow,nonnull));
64+
WIN_DLL_EXPORT extern dns_op_t dns_op_value (char const *) __attribute__ ((pure,nothrow,nonnull));
6565

6666
#ifdef __cplusplus
6767
}

src/output.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
#include <stdio.h>
4040
#include "dns.h"
4141

42-
extern void dns_print_result (dns_query_t *);
43-
extern void dns_print_header (dns_query_t *);
44-
extern void dns_print_question (char const *,dns_question_t *,size_t);
45-
extern void dns_print_answer (char const *,dns_answer_t *,size_t);
46-
extern void dns_dump_memory (FILE *,void const *,size_t,size_t);
42+
WIN_DLL_EXPORT extern void dns_print_result (dns_query_t *);
43+
WIN_DLL_EXPORT extern void dns_print_header (dns_query_t *);
44+
WIN_DLL_EXPORT extern void dns_print_question (char const *,dns_question_t *,size_t);
45+
WIN_DLL_EXPORT extern void dns_print_answer (char const *,dns_answer_t *,size_t);
46+
WIN_DLL_EXPORT extern void dns_dump_memory (FILE *,void const *,size_t,size_t);
4747

4848
#ifdef __cplusplus
4949
}

0 commit comments

Comments
 (0)