FIXED: - added CALLBACK to can callback function prototypes
authorChristian Taedcke <Christian.Taedcke@ica-traffic.de>
Tue, 16 Feb 2010 08:36:56 +0100
changeset 645 93ad82ee0426
parent 644 11b21e9a92f6
child 646 4177b05ab835
FIXED: - added CALLBACK to can callback function prototypes
drivers/can_ixxat_win32/ixxat.cpp
--- a/drivers/can_ixxat_win32/ixxat.cpp	Sat Dec 11 14:24:09 2010 +0100
+++ b/drivers/can_ixxat_win32/ixxat.cpp	Tue Feb 16 08:36:56 2010 +0100
@@ -295,19 +295,19 @@
 
 //------------------------------------------------------------------------
 extern "C"
-   UNS8 canReceive_driver(CAN_HANDLE inst, Message *m)
+   UNS8 __stdcall canReceive_driver(CAN_HANDLE inst, Message *m)
    {
    return (UNS8)reinterpret_cast<IXXAT*>(inst)->receive(m);
    }
                             
 extern "C"
-   UNS8 canSend_driver(CAN_HANDLE inst, Message const *m)
+   UNS8 __stdcall canSend_driver(CAN_HANDLE inst, Message const *m)
    {
    return (UNS8)reinterpret_cast<IXXAT*>(inst)->send(m);
    }
 
 extern "C"
-   CAN_HANDLE canOpen_driver(s_BOARD *board)
+   CAN_HANDLE __stdcall canOpen_driver(s_BOARD *board)
    {
    try
       {
@@ -320,14 +320,14 @@
    }
 
 extern "C"
-   int canClose_driver(CAN_HANDLE inst)
+   int __stdcall canClose_driver(CAN_HANDLE inst)
    {
    delete reinterpret_cast<IXXAT*>(inst);
    return 1;
    }
    
 extern "C"
-   UNS8 canChangeBaudRate_driver( CAN_HANDLE fd, char* baud)
+   UNS8 __stdcall canChangeBaudRate_driver( CAN_HANDLE fd, char* baud)
 	{
 	//printf("canChangeBaudRate not yet supported by this driver\n");
 	return 0;