SOURCES: 54321-SDL_main.patch (NEW) - do it proper way, name main ...

sparky sparky at pld-linux.org
Mon Nov 6 01:33:47 CET 2006


Author: sparky                       Date: Mon Nov  6 00:33:47 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- do it proper way, name main funcion 'main'

---- Files affected:
SOURCES:
   54321-SDL_main.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/54321-SDL_main.patch
diff -u /dev/null SOURCES/54321-SDL_main.patch:1.1
--- /dev/null	Mon Nov  6 01:33:47 2006
+++ SOURCES/54321-SDL_main.patch	Mon Nov  6 01:33:41 2006
@@ -0,0 +1,20 @@
+diff -Nur 54321.orig/code/main.cpp 54321.SDL_main/code/main.cpp
+--- 54321.orig/code/main.cpp	2001-11-16 04:14:04.000000000 +0000
++++ 54321.SDL_main/code/main.cpp	2006-11-06 00:30:27.000000000 +0000
+@@ -2,6 +2,7 @@
+     #include <stdlib.h>
+     #include <unistd.h>
+     #include <SDL.h>
++    #include <SDL_main.h>
+     #include <SDL_keysym.h>
+     #include "cube.h"
+     #include "font.h"
+@@ -29,7 +30,7 @@
+     #include "life.h"
+     #include "lifeController.h"
+         extern "C" int
+-        SDL_main( int argc, char** argv )
++        main( int argc, char** argv )
+         {
+                 unsigned int initFlags = 0;
+                 initFlags |= SDL_INIT_VIDEO;
================================================================


More information about the pld-cvs-commit mailing list