diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-11-13 22:53:53 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-11-13 22:53:53 +0100 |
commit | ac213f640b2c9cd3f92d578f9eaf6174e855de1f (patch) | |
tree | ad29f47fa7804c3015960c197484a5040de5e87f /gmp-h.in | |
parent | d0f8f545e7e9a819d6eb2f96ec62c0796f498136 (diff) | |
download | gmp-ac213f640b2c9cd3f92d578f9eaf6174e855de1f.tar.gz |
* gmp-h.in (__GMP_DECLSPEC_EXPORT, __GMP_DECLSPEC_IMPORT) [__GNUC__]:
Use __dllexport__ and __dllimport__ to keep out of application
namespace.
And improve a comment about va_list.
Diffstat (limited to 'gmp-h.in')
-rw-r--r-- | gmp-h.in | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -138,7 +138,11 @@ MA 02111-1307, USA. */ should have __GMP_DECLSPEC, and certainly constants or variables must have it or the wrong address will be resolved. */ -#if defined (__GNUC__) || defined (_MSC_VER) || defined (__BORLANDC__) +#if defined (__GNUC__) +#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__) +#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__) +#endif +#if defined (_MSC_VER) || defined (__BORLANDC__) #define __GMP_DECLSPEC_EXPORT __declspec(dllexport) #define __GMP_DECLSPEC_IMPORT __declspec(dllimport) #endif @@ -314,8 +318,9 @@ typedef __mpq_struct *mpq_ptr; /* The prototypes for gmp_vprintf etc are provided only if va_list is available, via an application having included <stdarg.h> or <varargs.h>. - Usually va_list is a typedef so can't be tested directly, but va_start is - almost certainly a macro, so look for that. + Usually va_list is a typedef so can't be tested directly, but C99 + specifies that va_start is a macro (and it was normally a macro on past + systems too), so look for that. <stdio.h> will define some sort of va_list for vprintf and vfprintf, but let's not bother trying to use that since it's not standard and since |