Osvaldo Villalon's changes to symbian_dll.cpp.=0A=
Adam Russell [Fri, 3 Jul 2009 05:35:46 +0000 (01:35 -0400)]
This patch adds some backwards compatibility for older
SDKs.

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>

symbian/symbian_dll.cpp

index a206c99..a1e61a4 100644 (file)
 #include <e32base.h>
 #include "PerlBase.h"
 
+#ifdef __SERIES60_3X__ 
+EXPORT_C GLDEF_C TInt E32Dll(/*TDllReason aReason*/) { return KErrNone; }
+#else
+EXPORT_C GLDEF_C TInt E32Dll(TDllReason /*aReason*/) { return KErrNone; }
+#endif
+
 extern "C" {
     EXPORT_C void* symbian_get_vars(void)         { return Dll::Tls(); }
     EXPORT_C void  symbian_set_vars(const void *p) { Dll::SetTls((TAny*)p); }