include/can_driver.h
changeset 629 b9274b595650
parent 561 f9be4262c68d
child 631 08b6b903f84a
--- a/include/can_driver.h	Fri Nov 12 22:02:32 2010 +0100
+++ b/include/can_driver.h	Fri Nov 12 22:24:06 2010 +0100
@@ -46,7 +46,11 @@
 };
 
 #ifndef DLL_CALL
+#if !defined(WIN32) || defined(__CYGWIN__)
 #define DLL_CALL(funcname) funcname##_driver
+#else
+//Windows was missing the definition of the calling convention
+#define DLL_CALL(funcname) __stdcall funcname##_driver
 #endif
 
 #ifndef FCT_PTR_INIT