mirror of
https://github.com/lux-tel/libsession-util.git
synced 2026-10-30 20:25:11 +00:00
14 lines
359 B
C
14 lines
359 B
C
#pragma once
|
|
|
|
#if defined(_WIN32) || defined(WIN32)
|
|
#define LIBSESSION_EXPORT __declspec(dllexport)
|
|
#else
|
|
#define LIBSESSION_EXPORT __attribute__((visibility("default")))
|
|
#endif
|
|
#define LIBSESSION_C_API extern "C" LIBSESSION_EXPORT
|
|
|
|
#ifdef __GNUC__
|
|
#define LIBSESSION_WARN_UNUSED __attribute__((warn_unused_result))
|
|
#else
|
|
#define LIBSESSION_WARN_UNUSED
|
|
#endif |