Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/include/secp256k1.h
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
#ifndef SECP256K1_API | #ifndef SECP256K1_API | ||||
# if defined(_WIN32) | # if defined(_WIN32) | ||||
# ifdef SECP256K1_BUILD | # ifdef SECP256K1_BUILD | ||||
# define SECP256K1_API __declspec(dllexport) | # define SECP256K1_API __declspec(dllexport) | ||||
# else | # else | ||||
# define SECP256K1_API | # define SECP256K1_API | ||||
# endif | # endif | ||||
# elif defined(__GNUC__) && defined(SECP256K1_BUILD) | # elif defined(__GNUC__) && (__GNUC__ >= 4) && defined(SECP256K1_BUILD) | ||||
# define SECP256K1_API __attribute__ ((visibility ("default"))) | # define SECP256K1_API __attribute__ ((visibility ("default"))) | ||||
# else | # else | ||||
# define SECP256K1_API | # define SECP256K1_API | ||||
# endif | # endif | ||||
#endif | #endif | ||||
/**Warning attributes | /**Warning attributes | ||||
* NONNULL is not used if SECP256K1_BUILD is set to avoid the compiler optimizing out | * NONNULL is not used if SECP256K1_BUILD is set to avoid the compiler optimizing out | ||||
▲ Show 20 Lines • Show All 619 Lines • Show Last 20 Lines |