mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +00:00
tweak calling conventions.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10124 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
0f346908ea
commit
2123b46d6d
2 files changed
+15
-6
No files matched your search
@@ -38,8 +38,17 @@ SWITCH_BEGIN_EXTERN_C
|
||||
#include <switch.h>
|
||||
#include <switch_cpp.h>
|
||||
|
||||
typedef void (*hangupFunction)(void);
|
||||
typedef char* (*inputFunction)(void*, switch_input_type_t);
|
||||
/* calling conventions for Windows */
|
||||
#ifndef MANAGED_STDCALL
|
||||
#ifdef WIN32
|
||||
# define MANAGED_STDCALL __stdcall
|
||||
# else
|
||||
# define MANAGED_STDCALL
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef void (MANAGED_STDCALL *hangupFunction)(void);
|
||||
typedef char* (MANAGED_STDCALL *inputFunction)(void*, switch_input_type_t);
|
||||
|
||||
|
||||
#ifndef _MANAGED
|
||||
|
||||
Reference in new issue
Block a user