Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add HEDLEY_IMPORT_CLASS define #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
9 changes: 9 additions & 0 deletions hedley.h
Original file line number Diff line number Diff line change
Expand Up @@ -1647,10 +1647,16 @@ HEDLEY_DIAGNOSTIC_POP
#if defined(HEDLEY_IMPORT)
# undef HEDLEY_IMPORT
#endif
#if defined(HEDLEY_IMPORT_CLASS)
# undef HEDLEY_IMPORT_CLASS
#endif
#if defined(_WIN32) || defined(__CYGWIN__)
# define HEDLEY_PRIVATE
# define HEDLEY_PUBLIC __declspec(dllexport)
# define HEDLEY_IMPORT __declspec(dllimport)
# if defined(__cplusplus)
# define HEDLEY_IMPORT_CLASS HEDLEY_IMPORT
# endif
#else
# if \
HEDLEY_HAS_ATTRIBUTE(visibility) || \
Expand All @@ -1674,6 +1680,9 @@ HEDLEY_DIAGNOSTIC_POP
# define HEDLEY_PUBLIC
# endif
# define HEDLEY_IMPORT extern
# if defined(__cplusplus)
# define HEDLEY_IMPORT_CLASS
# endif
#endif

#if defined(HEDLEY_NO_THROW)
Expand Down