Ignore:
Timestamp:
Nov 3, 2011, 7:45:31 PM (14 years ago)
Author:
dmik
Message:

Extern "C".

Mostly, to fix the GCC bug with stdcall not suppressing C++ mangling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/include/odinwrap.h

    r7357 r21790  
    6060#include <malloc.h>
    6161#include <odin.h>
     62
     63//#ifdef __cplusplus
     64extern "C" {
     65//#endif
    6266
    6367// ---------------------------------------------------------------------------
     
    7579extern char*             WIN32API dbg_GetLastCallerName();
    7680
    77 
     81//#ifdef __cplusplus
     82} // extern "C"
     83//#endif
    7884
    7985// ---------------------------------------------------------------------------
     
    13451351#define ODINPROCEDURE14(cName,t1,a1,t2,a2,t3,a3,t4,a4,t5,a5,t6,a6,t7,a7,t8,a8,t9,a9,t10,a10,t11,a11,t12,a12,t13,a13,t14,a14)  \
    13461352  void WINAPI cName(t1 a1,t2 a2,t3 a3,t4 a4,t5 a5,t6 a6,t7 a7,t8 a8,t9 a9,t10 a10,t11 a11,t12 a12,t13 a13,t14 a14)    \
    1347  
     1353
    13481354#define ODINFUNCTIONNODBG0   ODINFUNCTION0
    13491355#define ODINFUNCTIONNODBG1   ODINFUNCTION1
Note: See TracChangeset for help on using the changeset viewer.