diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-07-31 11:55:39 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-07-31 12:17:50 +0200 |
commit | 8e4df216fee26e346a46817d4af64d85a21e40f6 (patch) | |
tree | d3fc5da1afe9d6763025fbf6700173bb51e88038 /lib/includes/gnutls/gnutls.h.in | |
parent | 3d1a66d4f2716c72b146c6ec1feb2d886e2ef3b3 (diff) | |
download | gnutls-8e4df216fee26e346a46817d4af64d85a21e40f6.tar.gz |
gnutls.h: use _SYM_EXPORT to export other than function symbols
Diffstat (limited to 'lib/includes/gnutls/gnutls.h.in')
-rw-r--r-- | lib/includes/gnutls/gnutls.h.in | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in index c9062a9b1b..2ca8167245 100644 --- a/lib/includes/gnutls/gnutls.h.in +++ b/lib/includes/gnutls/gnutls.h.in @@ -67,6 +67,12 @@ extern "C" { #define GNUTLS_CIPHER_RIJNDAEL_CBC GNUTLS_CIPHER_AES_128_CBC #define GNUTLS_CIPHER_ARCFOUR GNUTLS_CIPHER_ARCFOUR_128 +#if !defined(GNUTLS_INTERNAL_BUILD) && defined(_WIN32) +# define _SYM_EXPORT __declspec(dllimport) +#else +# define _SYM_EXPORT +#endif + /** * gnutls_cipher_algorithm_t: * @GNUTLS_CIPHER_UNKNOWN: Unknown algorithm. @@ -1481,12 +1487,12 @@ typedef void *(*gnutls_realloc_function) (void *, size_t); void gnutls_global_set_time_function(gnutls_time_func time_func); /* For use in callbacks */ -extern gnutls_alloc_function gnutls_malloc; -extern gnutls_realloc_function gnutls_realloc; -extern gnutls_calloc_function gnutls_calloc; -extern gnutls_free_function gnutls_free; +extern _SYM_EXPORT gnutls_alloc_function gnutls_malloc; +extern _SYM_EXPORT gnutls_realloc_function gnutls_realloc; +extern _SYM_EXPORT gnutls_calloc_function gnutls_calloc; +extern _SYM_EXPORT gnutls_free_function gnutls_free; -extern char *(*gnutls_strdup) (const char *); +extern _SYM_EXPORT char *(*gnutls_strdup) (const char *); typedef void (*gnutls_log_func) (int, const char *); typedef void (*gnutls_audit_log_func) (gnutls_session_t, const char *); @@ -1648,20 +1654,20 @@ int gnutls_srp_verifier(const char *username, /* The static parameters defined in draft-ietf-tls-srp-05 * Those should be used as input to gnutls_srp_verifier(). */ -extern const gnutls_datum_t gnutls_srp_4096_group_prime; -extern const gnutls_datum_t gnutls_srp_4096_group_generator; +extern _SYM_EXPORT const gnutls_datum_t gnutls_srp_4096_group_prime; +extern _SYM_EXPORT const gnutls_datum_t gnutls_srp_4096_group_generator; -extern const gnutls_datum_t gnutls_srp_3072_group_prime; -extern const gnutls_datum_t gnutls_srp_3072_group_generator; +extern _SYM_EXPORT const gnutls_datum_t gnutls_srp_3072_group_prime; +extern _SYM_EXPORT const gnutls_datum_t gnutls_srp_3072_group_generator; -extern const gnutls_datum_t gnutls_srp_2048_group_prime; -extern const gnutls_datum_t gnutls_srp_2048_group_generator; +extern _SYM_EXPORT const gnutls_datum_t gnutls_srp_2048_group_prime; +extern _SYM_EXPORT const gnutls_datum_t gnutls_srp_2048_group_generator; -extern const gnutls_datum_t gnutls_srp_1536_group_prime; -extern const gnutls_datum_t gnutls_srp_1536_group_generator; +extern _SYM_EXPORT const gnutls_datum_t gnutls_srp_1536_group_prime; +extern _SYM_EXPORT const gnutls_datum_t gnutls_srp_1536_group_generator; -extern const gnutls_datum_t gnutls_srp_1024_group_prime; -extern const gnutls_datum_t gnutls_srp_1024_group_generator; +extern _SYM_EXPORT const gnutls_datum_t gnutls_srp_1024_group_prime; +extern _SYM_EXPORT const gnutls_datum_t gnutls_srp_1024_group_generator; typedef int gnutls_srp_server_credentials_function(gnutls_session_t, const char *username, |