From: Duilio J. P. <dp...@fc...> - 2005-02-14 20:35:30
|
Why this will be a disaster? EXPORT is defined by mingw? If it is not, you just must define EXPORT to the corresponding thing when building on mingw, or define to empty when not. Bye, Duilio. > Heya reading the mingw docs, I keep across this: > > http://mingw.sourceforge.net/docs.shtml > > > Here's an example. Cut and paste the following into a file named > dllfct.h: > > #ifdef BUILD_DLL > // the dll exports > #define EXPORT __declspec(dllexport) > #else > // the exe imports > #define EXPORT __declspec(dllimport) > #endif > > // function to be imported/exported > EXPORT void tstfunc (void); > > > Cut and paste the following into a file named dllfct.c: > > #include <stdio.h> > #include "dllfct.h" > > EXPORT void tstfunc (void) > { > printf ("Hello\n"); > } > > > > > > This makes me nearly sick :), is there a way to get around this ?, because > this would be a complete disaster within libvisual :) |