diff -ru --exclude=CVS gnokii-cvs/ChangeLog gnokii-devel/ChangeLog --- gnokii-cvs/ChangeLog 2004-01-16 02:02:55.000000000 +0100 +++ gnokii-devel/ChangeLog 2004-01-18 00:36:01.000000000 +0100 @@ -22,6 +22,8 @@ o fix the bug reported by Peter Gervai that gnokii is unable to read calendar with more then 220 entries; fix corrects nk6510 and nk7110 drivers (Pawel Kot) + o __declspec(dllimport) is required if someone using a + win32 gnokii.dll (BORBELY Zoltan) 0.5.8 ===== diff -ru --exclude=CVS gnokii-cvs/include/gnokii.h gnokii-devel/include/gnokii.h --- gnokii-cvs/include/gnokii.h 2003-11-30 19:55:13.000000000 +0100 +++ gnokii-devel/include/gnokii.h 2004-01-18 00:33:53.000000000 +0100 @@ -50,7 +50,11 @@ #include #ifndef API -# define API +# if defined(WIN32) && defined(GNOKIIDLL_IMPORTS) +# define API __declspec(dllimport) +# else +# define API +# endif #endif struct gn_statemachine;