Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions async_simple/CommonMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
#define AS_INLINE __attribute__((__always_inline__)) inline
#endif

#ifdef _WIN32
#define AS_EXPORT __declspec(dllexport)
#else
#define AS_EXPORT __attribute__((__visibility__("default")))
#endif

#ifdef __clang__
#if __has_feature(address_sanitizer)
#define AS_INTERNAL_USE_ASAN 1
Expand Down
8 changes: 4 additions & 4 deletions async_simple/uthread/internal/thread_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ struct transfer_t {
fcontext_t fctx;
void* data;
};
extern "C" __attribute__((__visibility__("default"))) transfer_t
_fl_jump_fcontext(fcontext_t const to, void* vp);
extern "C" __attribute__((__visibility__("default"))) fcontext_t
_fl_make_fcontext(void* sp, std::size_t size, void (*fn)(transfer_t));
extern "C" AS_EXPORT transfer_t _fl_jump_fcontext(fcontext_t const to,
void* vp);
extern "C" AS_EXPORT fcontext_t _fl_make_fcontext(void* sp, std::size_t size,
void (*fn)(transfer_t));

class thread_context;

Expand Down
Loading