Add export.h to define SODIUM_EXPORT
This commit is contained in:
parent
8088b99359
commit
76cb00d56f
30
src/libsodium/include/sodium/export.h
Normal file
30
src/libsodium/include/sodium/export.h
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
#ifndef __SODIUM_EXPORT_H__
|
||||
#define __SODIUM_EXPORT_H__
|
||||
|
||||
#ifndef __GNUC__
|
||||
# ifdef __attribute__
|
||||
# undef __attribute__
|
||||
# endif
|
||||
# define __attribute__(a)
|
||||
#endif
|
||||
|
||||
#ifndef SODIUM_STATIC
|
||||
# if defined(_MSC_VER)
|
||||
# ifdef DLL_EXPORT
|
||||
# define SODIUM_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define SODIUM_EXPORT __declspec(dllimport)
|
||||
# endif
|
||||
# else
|
||||
# if defined(__SUNPRO_C)
|
||||
# define SODIUM_EXPORT __attribute__ __global
|
||||
# elif defined(_MSG_VER)
|
||||
# define SODIUM_EXPORT extern __declspec(dllexport)
|
||||
# else
|
||||
# define SODIUM_EXPORT __attribute__ ((visibility ("default")))
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user