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

Support for building a Windows static library #57

Open
wants to merge 1 commit into
base: noetic-devel
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
8 changes: 8 additions & 0 deletions kdl_parser/include/kdl_parser/visibility_control.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
// https://gcc.gnu.org/wiki/Visibility

#if defined _WIN32 || defined __CYGWIN__
#ifdef KDL_PARSER_STATIC
#define KDL_PARSER_EXPORT
#define KDL_PARSER_IMPORT
#define KDL_PARSER_PUBLIC
#define KDL_PARSER_LOCAL
#define KDL_PARSER_DEPRECATED(msg) __declspec(deprecated(msg))
#else
#ifdef __GNUC__
#define KDL_PARSER_EXPORT __attribute__ ((dllexport))
#define KDL_PARSER_IMPORT __attribute__ ((dllimport))
Expand All @@ -62,6 +69,7 @@
#endif
#define KDL_PARSER_PUBLIC_TYPE KDL_PARSER_PUBLIC
#define KDL_PARSER_LOCAL
#endif
#else
#define KDL_PARSER_EXPORT __attribute__ ((visibility("default")))
#define KDL_PARSER_IMPORT
Expand Down