summaryrefslogtreecommitdiff
path: root/MSVC/readline/rldynlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'MSVC/readline/rldynlink.h')
-rw-r--r--MSVC/readline/rldynlink.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/MSVC/readline/rldynlink.h b/MSVC/readline/rldynlink.h
new file mode 100644
index 0000000..94d42c2
--- /dev/null
+++ b/MSVC/readline/rldynlink.h
@@ -0,0 +1,17 @@
+
+#ifndef _DYN_LINK_H
+#define _DYN_LINK_H
+
+#if defined (READLINE_STATIC)
+ #define _RL_DLL
+#elif defined (_WIN32)
+ #if defined (BUILDING_DLL)
+ #define _RL_DLL __declspec(dllexport)
+ #else
+ #define _RL_DLL __declspec(dllimport)
+ #endif /* BUILDING_DLL */
+#endif /* _WIN32 ... _DYNAMIC_LINK */
+
+#define RL_EXTERN extern _RL_DLL
+
+#endif /* _DYN_LINK_H */