Skip to content

Commit 81e408a

Browse files
committed
Added arg params in main function to fix conflicting types for 'SDL_main' error
1 parent e4d90b7 commit 81e408a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

demo/sdl_opengl2/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
*
6868
* ===============================================================*/
6969
int
70-
main(void)
70+
main(int argc, char *argv[])
7171
{
7272
/* Platform */
7373
SDL_Window *win;

demo/sdl_opengl3/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
* DEMO
7171
*
7272
* ===============================================================*/
73-
int main(void)
73+
int main(int argc, char *argv[])
7474
{
7575
/* Platform */
7676
SDL_Window *win;

0 commit comments

Comments
 (0)