summaryrefslogtreecommitdiff
path: root/yarp/defines.h
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-07-12 12:46:38 -0400
committerGitHub <noreply@github.com>2023-07-12 12:46:38 -0400
commita02f5eb56a53e6799e73cfbb96fc8ccd68fa5651 (patch)
tree9a00f3fa5062af0bf60f7b3291b3a99a1832da01 /yarp/defines.h
parent47cb789332e80d51699ab95ef610a69f5556d44d (diff)
YARP resync (#8059)
Notes
Notes: Merged-By: jemmaissroff
Diffstat (limited to 'yarp/defines.h')
-rw-r--r--yarp/defines.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/yarp/defines.h b/yarp/defines.h
index e6a90bb518..5dba303a3d 100644
--- a/yarp/defines.h
+++ b/yarp/defines.h
@@ -12,11 +12,9 @@
#include <string.h>
// YP_EXPORTED_FUNCTION
-#if defined(YP_STATIC)
-# define YP_EXPORTED_FUNCTION
-#elif defined(_WIN32)
+#if defined(_WIN32)
# define YP_EXPORTED_FUNCTION __declspec(dllexport) extern
-#else
+#elif defined(YP_EXPORT_SYMBOLS)
# ifndef YP_EXPORTED_FUNCTION
# ifndef RUBY_FUNC_EXPORTED
# define YP_EXPORTED_FUNCTION __attribute__((__visibility__("default"))) extern
@@ -24,6 +22,8 @@
# define YP_EXPORTED_FUNCTION RUBY_FUNC_EXPORTED
# endif
# endif
+#else
+# define YP_EXPORTED_FUNCTION
#endif
// YP_ATTRIBUTE_UNUSED