ufairiya / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Windows DLL #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Adding Microsoft's __declspec(dllexport) or __declspec(dllimport) helps to
create a Windows DLL of the Mongoose library.

While not required, this eliminates the need to list the exports in a
separate file.

Original issue reported on code.google.com by gilbert....@gmail.com on 21 May 2009 at 5:16

Attachments:

GoogleCodeExporter commented 9 years ago
This is exactly the reason why I keep a separate .def file.
Having that __declspec windows mess in the header file is not good:
  1. it confuses UNIX people
  2. it clutters the header with unnesesary junk that does not hold any valuable
information. __cplusplus is enough.

Thanks for your work, however.

I was going the same route some time ago, then decided to stop it. These ugly
__declspecs reveals once more the weirdness of windows world, where some things 
are
awesome and some are awful, but the general rule is "if you want to do even a
simplest thing, it must be painful"

Original comment by valenok on 21 May 2009 at 5:39