Browse Source

Added arg params in main function to fix conflicting types for 'SDL_main' error

Johan Söderlind Åström 5 years ago
parent
commit
81e408a805
2 changed files with 2 additions and 2 deletions
  1. 1 1
      demo/sdl_opengl2/main.c
  2. 1 1
      demo/sdl_opengl3/main.c

+ 1 - 1
demo/sdl_opengl2/main.c

@@ -67,7 +67,7 @@
  *
  * ===============================================================*/
 int
-main(void)
+main(int argc, char *argv[])
 {
     /* Platform */
     SDL_Window *win;

+ 1 - 1
demo/sdl_opengl3/main.c

@@ -70,7 +70,7 @@
  *                          DEMO
  *
  * ===============================================================*/
-int main(void)
+int main(int argc, char *argv[])
 {
     /* Platform */
     SDL_Window *win;