Win32 fixes:
authorChristian Taedcke <hacking@taedcke.com>
Tue, 22 May 2012 08:32:20 +0200
changeset 728 92b7c9f85aad
parent 727 aebbcdd34590
child 729 17fb41e21e7a
Win32 fixes:
- added macros used by driver can_peak_win32
include/can_driver.h
--- a/include/can_driver.h	Tue May 22 08:14:52 2012 +0200
+++ b/include/can_driver.h	Tue May 22 08:32:20 2012 +0200
@@ -49,11 +49,14 @@
 #if !defined(WIN32) || defined(__CYGWIN__)
 #define DLL_CALL(funcname) funcname##_driver
 #else
+#define LIBAPI __stdcall
 //Windows was missing the definition of the calling convention
-#define DLL_CALL(funcname) __stdcall funcname##_driver
+#define DLL_CALL(funcname) LIBAPI funcname##_driver
 #endif
 #endif //DLL_CALL
 
+#define LIBPUBLIC
+
 #ifndef FCT_PTR_INIT
 #define FCT_PTR_INIT
 #endif