Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Win32: get rid of the xy.def files?!?

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Thu, 25 Jan 2007 08:41:58 +0100
Jaap Keuter wrote:
Hi,

Reading the previously quoted thread, why not use the facilities provided
by gmodule.h?

/* exporting and importing functions, this is special cased
 * to feature Windows dll stubs.
 */
#define	G_MODULE_IMPORT		extern
#ifdef G_PLATFORM_WIN32
#  define	G_MODULE_EXPORT		__declspec(dllexport)
#else /* !G_PLATFORM_WIN32 */
#  define	G_MODULE_EXPORT
#endif /* !G_PLATFORM_WIN32 */
Without having a look myself, is this GTK1.x safe?

Regards, ULFL