Skip to content

Commit

Permalink
Fixed signature of main for libSDLmain
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Thakore committed Jun 26, 2010
1 parent 41c807a commit 20ebcf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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 ***/
Expand All @@ -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);
Expand Down

0 comments on commit 20ebcf4

Please sign in to comment.