This wasn't considered spam but I never got the message or I deleted it by 
accident.

Jason


----------  Forwarded Message  ----------

Subject: Fwd: Import attribute not being generated
Date: Sunday 07 August 2011, 07:55:42
From: MPIR Team <thempirt...@googlemail.com>
To: ja...@njkfrudils.plus.com

---------- Forwarded message ----------
From: si...@sim-basis.de
Date: Fri, 8 Jul 2011 08:50:57 +0200 (CEST)
Subject: Import attribute not being generated
To: thempirt...@gmail.com

Applies to current and past releases.

In the generated mpir.h (or gmp.h when --enable-gmpcompat),
we have near the top of the file -

/* Instantiated by configure. */
#if ! defined (__GMP_WITHIN_CONFIGURE)
/* #undef _LONG_LONG_LIMB */
#define __GMP_LIBGMP_DLL  0
#endif

This uncoditionally sets __GMP_LIBGMP_DLL to 0 when
included by a user program.

Further down we have -

#if __GMP_LIBGMP_DLL
#if __GMP_WITHIN_GMP
/* compiling to go into a DLL libmpir */
#define __GMP_DECLSPEC  __GMP_DECLSPEC_EXPORT
#else
/* compiling to go into an application which will link to a DLL libmpir */
#define __GMP_DECLSPEC  __GMP_DECLSPEC_IMPORT
#endif
#else
/* all other cases */
#define __GMP_DECLSPEC
#endif

So we can never get a declspec import.

Roger

-----------------------------------------

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

Reply via email to