Skip to content
Browse files

Fixed signature of main for libSDLmain

  • Loading branch information...
1 parent 41c807a commit 20ebcf41e83ad769ea130f1ca4baa72b05ab3023 @kthakore kthakore committed Jun 26, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 MacOSX/main.c
View
5 MacOSX/main.c
@@ -1,5 +1,6 @@
#include <EXTERN.h> /* from the Perl distribution */
#include <perl.h> /* from the Perl distribution */
+#include <stdlib.h>
#include <SDL/SDL.h>
static PerlInterpreter *my_perl; /* ** The Perl interpreter ***/
@@ -17,8 +18,10 @@ xs_init(pTHX)
-int main(int argc, char **argv, char **env)
+int main(int argc, char *argv[])
{
+ //printf( "ENV %s \n", argv[1] );
+ char **env; // we can't do this but will have to use getenv
PERL_SYS_INIT3(&argc,&argv,&env);
my_perl = perl_alloc();
perl_construct(my_perl);

0 comments on commit 20ebcf4

Please sign in to comment.
Something went wrong with that request. Please try again.