1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00

12555: fix static linking on cygwin

This commit is contained in:
Peter Stephenson 2000-08-07 17:17:05 +00:00
parent 1d2948c2da
commit a021f6329b
2 changed files with 8 additions and 3 deletions

@ -427,8 +427,13 @@ if $first_stage; then
echo " done; \\"
if test "$CYGWIN" = yes; then
echo " echo '# ifndef IMPORTING_MODULE_${q_name} '; \\"
echo " echo '# undef mod_import_variable'; \\"
echo " echo '# define mod_import_variable __attribute__((__dllimport__))'; \\"
echo " echo '# ifdef MODULE'; \\"
echo " echo '# undef mod_import_variable'; \\"
echo " echo '# define mod_import_variable __attribute__((__dllimport__))'; \\"
echo " echo '# else /* MODULE */'; \\"
echo " echo '# undef mod_import_variable'; \\"
echo " echo '# define mod_import_variable'; \\"
echo " echo '# endif /* MODULE */'; \\"
echo " echo '# endif /* IMPORTING_MODULE_${q_name} */'; \\"
fi
echo " echo; \\"

@ -1681,7 +1681,7 @@ typedef unsigned char * (*ZleReadFn) _((char *, char *, int));
/* Pseudo-keyword to mark exportedness */
/***************************************/
#ifdef __CYGWIN__
#if defined(__CYGWIN__) && defined(MODULE)
#define mod_export __attribute__((__dllexport__))
#define mod_import_variable __attribute__((__dllimport__))
#define mod_import_function