mirror of
https://github.com/aaru-dps/Aaru.Checksums.Native.git
synced 2025-12-16 19:24:29 +00:00
31 lines
710 B
C
31 lines
710 B
C
#ifndef AARU_CHECKSUMS_NATIVE_LIBRARY_H
|
|
#define AARU_CHECKSUMS_NATIVE_LIBRARY_H
|
|
|
|
#ifdef __cplusplus
|
|
#define EXTERNC extern "C"
|
|
#else
|
|
#define EXTERNC
|
|
#endif
|
|
|
|
#if defined(_WIN32)
|
|
#define AARU_CALL __stdcall
|
|
#define AARU_EXPORT EXTERNC __declspec(dllexport)
|
|
#define AARU_LOCAL
|
|
#else
|
|
#define AARU_CALL
|
|
#if defined(__APPLE__)
|
|
#define AARU_EXPORT EXTERNC __attribute__((visibility("default")))
|
|
#define AARU_LOCAL __attribute__((visibility("hidden")))
|
|
#else
|
|
#if __GNUC__ >= 4
|
|
#define AARU_EXPORT EXTERNC __attribute__((visibility("default")))
|
|
#define AARU_LOCAL __attribute__((visibility("hidden")))
|
|
#else
|
|
#define AARU_EXPORT EXTERNC
|
|
#define AARU_LOCAL
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#endif // AARU_CHECKSUMS_NATIVE_LIBRARY_H
|