This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Osvaldo Villalon's changes to symbian_dll.cpp.=0A=
authorAdam Russell <arussell@cs.uml.edu>
Fri, 3 Jul 2009 05:35:46 +0000 (01:35 -0400)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Fri, 3 Jul 2009 11:57:33 +0000 (13:57 +0200)
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); }