diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-11-20 00:14:41 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-11-20 00:14:41 +0100 |
commit | d8a9a898c575a7192cbffa78d5029f16f640634d (patch) | |
tree | fd5eb345f0a1523ea3a3105cf301165a5652cec5 /gmp-h.in | |
parent | 8d966625967599e5d5f857871b74345c7bf9b4f6 (diff) | |
download | gmp-d8a9a898c575a7192cbffa78d5029f16f640634d.tar.gz |
* gmp-h.in: More comments on __declspec for windows DLLs.
Diffstat (limited to 'gmp-h.in')
-rw-r--r-- | gmp-h.in | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -136,7 +136,18 @@ MA 02111-1307, USA. */ variables, the various internals in gmp-impl.h etc can be left unadorned. But internals used by the test programs or speed measuring programs should have __GMP_DECLSPEC, and certainly constants or variables must - have it or the wrong address will be resolved. */ + have it or the wrong address will be resolved. + + In gcc __declspec can go at either the start or end of a prototype. + + In Microsoft C __declspec must go at the start, or after the type like + void __declspec(...) *foo()". There's no __dllexport or anything to + guard against someone foolish #defining dllexport. _export used to be + available, but no longer. + + In Borland C _export still exists, but needs to go after the type, like + "void _export foo();". Would have to change the __GMP_DECLSPEC syntax to + make use of that. Probably more trouble than it's worth. */ #if defined (__GNUC__) #define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__) |