]> git.pld-linux.org Git - packages/54321.git/commitdiff
- do it proper way, name main funcion 'main'
authorsparky <sparky@pld-linux.org>
Mon, 6 Nov 2006 00:33:41 +0000 (00:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    54321-SDL_main.patch -> 1.1

54321-SDL_main.patch [new file with mode: 0644]

diff --git a/54321-SDL_main.patch b/54321-SDL_main.patch
new file mode 100644 (file)
index 0000000..4468cdc
--- /dev/null
@@ -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;
This page took 0.076229 seconds and 4 git commands to generate.