ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.309 by root, Mon Dec 26 22:30:21 2011 UTC vs.
Revision 1.310 by root, Tue Dec 27 07:23:33 2011 UTC

580 580
581static void 581static void
582deliantra_main () 582deliantra_main ()
583{ 583{
584 char *argv[] = { 0 }; 584 char *argv[] = { 0 };
585 call_argv ("::main", G_DISCARD | G_VOID, argv); 585 call_argv ("DC::Main::main", G_DISCARD | G_VOID, argv);
586} 586}
587 587
588#ifdef __MACOSX__ 588#ifdef __MACOSX__
589 /* to due surprising braindamage on the side of SDL design, we 589 /* to due surprising braindamage on the side of SDL design, we
590 * do some mind-boggling hack here: SDL requires a custom main() 590 * do some mind-boggling hack here: SDL requires a custom main()
591 * on OS X, so... we provide one and call the original main(), which, 591 * on OS X, so... we provide one and call the original main(), which,
592 * due to share dlibrary magic, calls -lSDLmain's main, not perl's main, 592 * due to shared library magic, calls -lSDLmain's main, not perl's main,
593 * and which calls our main (== SDL_main) back. 593 * and which calls our main (== SDL_main) back.
594 */ 594 */
595 extern C_LINKAGE int 595 extern C_LINKAGE int
596 main (int argc, char *argv[]) 596 main (int argc, char *argv[])
597 { 597 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines