about summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-08-02 18:01:51 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-08-02 18:01:51 +0000
commit4f1aa826f5fb4d7f8dd9d76ab5c3f83934b148de (patch)
tree24d61adf721e320b6a7de68f010071c656648c93 /Src/zsh.h
parentde7b6730bcebf08368e7531b68c6a2598166eb86 (diff)
downloadzsh-4f1aa826f5fb4d7f8dd9d76ab5c3f83934b148de.tar.gz
zsh-4f1aa826f5fb4d7f8dd9d76ab5c3f83934b148de.tar.xz
zsh-4f1aa826f5fb4d7f8dd9d76ab5c3f83934b148de.zip
Andrej: Dynamic loading on cygwin
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index a21fa16e6..dc24db2ed 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1681,7 +1681,15 @@ typedef unsigned char * (*ZleReadFn) _((char *, char *, int));
 /* Pseudo-keyword to mark exportedness */
 /***************************************/
 
+#ifdef __CYGWIN__
+#define mod_export __attribute__((__dllexport__))
+#define mod_import_variable __attribute__((__dllimport__))
+#define mod_import_function
+#else
 #define mod_export
+#define mod_import_variable
+#define mod_import_function
+#endif
 
 /***************************************/
 /* Hooks in core.                      */