Compiling libpurple in Visual Studio

Ethan Blanton elb at pidgin.im
Mon May 28 20:41:34 EDT 2007


David Byron spake unto us the following wisdom:
> What about something like this:
> 
> #if (defined(WIN32) || defined(_WIN32))
> #define PRPL_EXTERN  __declspec(dllexport)
> #else
> #define PRPL_EXTERN
> #endif
> 
> and then each public function starts with PRPL_EXTERN, like this:
> 
> PRPL_EXTERN PurplePlugin *purple_find_prpl(const char *id);
> 
> I'll try something like this and get it to work, then submit a patch.

If there is an external way to do this, that is preferable, at least
to me.  I see no reason to crap up the code to fix a Windows problem
that can be fixed without messing things up for people on real
platforms.

Ethan

-- 
The laws that forbid the carrying of arms are laws [that have no remedy
for evils].  They disarm only those who are neither inclined nor
determined to commit crimes.
		-- Cesare Beccaria, "On Crimes and Punishments", 1764
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://pidgin.im/pipermail/devel/attachments/20070528/be6b7977/attachment.sig>


More information about the Devel mailing list