libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / export.h
blob1fcbaae88018dd376ebfcf01464809d9655a0cf9
2 #ifndef __SODIUM_EXPORT_H__
3 #define __SODIUM_EXPORT_H__
5 #ifndef __GNUC__
6 # ifdef __attribute__
7 # undef __attribute__
8 # endif
9 # define __attribute__(a)
10 #endif
12 #ifndef SODIUM_STATIC
13 # if defined(_MSC_VER)
14 # ifdef DLL_EXPORT
15 # define SODIUM_EXPORT __declspec(dllexport)
16 # else
17 # define SODIUM_EXPORT __declspec(dllimport)
18 # endif
19 # else
20 # if defined(__SUNPRO_C)
21 # define SODIUM_EXPORT __attribute__ __global
22 # elif defined(_MSG_VER)
23 # define SODIUM_EXPORT extern __declspec(dllexport)
24 # else
25 # define SODIUM_EXPORT __attribute__ ((visibility ("default")))
26 # endif
27 # endif
28 #endif
30 #endif