]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_lua: fix windows build (FSBUILD-149)
authorMichael Jerris <mike@jerris.com>
Mon, 6 Apr 2009 18:53:43 +0000 (18:53 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 6 Apr 2009 18:53:43 +0000 (18:53 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12919 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_platform.h
src/mod/languages/mod_lua/freeswitch_lua.h

index 02cbbdacef32a18af869e8e6fc54db6c2694f59c..62942c72c1c739e324d0be90b13ea5e7b3be66af 100644 (file)
@@ -148,10 +148,10 @@ typedef int gid_t;
 #define SWITCH_MOD_DECLARE(type)               type __cdecl
 #define SWITCH_MOD_DECLARE_DATA
 #elif defined(MOD_EXPORTS)
-#define SWITCH_MOD_DECLARE(type)               __declspec(dllexport) type __cdecl
+#define SWITCH_MOD_DECLARE(type)               __declspec(dllexport) type __stdcall
 #define SWITCH_MOD_DECLARE_DATA                        __declspec(dllexport)
 #else
-#define SWITCH_MOD_DECLARE(type)               __declspec(dllimport) type __cdecl
+#define SWITCH_MOD_DECLARE(type)               __declspec(dllimport) type __stdcall
 #define SWITCH_MOD_DECLARE_DATA                        __declspec(dllimport)
 #endif
 #define SIGHUP SIGTERM
index 550e756c844398ae6914013253e8c7281adcd432..6a6ffbff839d4652dbaa72604be708a9a25c0970 100644 (file)
@@ -23,7 +23,7 @@ class Session : public CoreSession {
     Session(char *uuid, CoreSession *a_leg = NULL);
     Session(switch_core_session_t *session);
     ~Session();        
-       virtual void destroy(void);
+       SWITCH_MOD_DECLARE(virtual void) destroy(void);
        
        virtual bool begin_allow_threads();
        virtual bool end_allow_threads();