diff options
author | Kevin Ryde <user42@zip.com.au> | 2004-04-20 01:37:38 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2004-04-20 01:37:38 +0200 |
commit | 67dde096ed3a486637cb1cc49fcd1d48978c1b7c (patch) | |
tree | d698c73fd011e9a4a30cca07713bdfb2a660e70e /demos | |
parent | da6b22f0905b97424b7d93a478744a5f43555bce (diff) | |
download | gmp-67dde096ed3a486637cb1cc49fcd1d48978c1b7c.tar.gz |
* demos/perl/GMP.xs (static_functable): Treat cygwin the same as mingw
DLLs.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/perl/GMP.xs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/demos/perl/GMP.xs b/demos/perl/GMP.xs index aadd8a0b3..7b1eefa71 100644 --- a/demos/perl/GMP.xs +++ b/demos/perl/GMP.xs @@ -121,17 +121,18 @@ MA 02111-1307, USA. */ #define classconst const #endif -/* In a MINGW DLL build of gmp, the various gmp functions are given with - dllimport directives, which prevents them being used as initializers for - constant data. We give function tables as "static_functable const ...", - which is normally "static const", but for mingw expands to just "const" - making the table an automatic with a run-time initializer. +/* In a MINGW or Cygwin DLL build of gmp, the various gmp functions are + given with dllimport directives, which prevents them being used as + initializers for constant data. We give function tables as + "static_functable const ...", which is normally "static const", but for + mingw expands to just "const" making the table an automatic with a + run-time initializer. In gcc 3.3.1, the function tables initialized like this end up getting all the __imp__foo values fetched, even though just one or two will be used. This is wasteful, but probably not too bad. */ -#ifdef __MINGW32__ +#if defined (__MINGW32__) || defined (__CYGWIN__) #define static_functable #else #define static_functable static |