瀏覽代碼

Merge pull request #67 from KenthJohan/master

Added main arg params in demo/sdl_opengl* (fixes compilation error)
dumblob 5 年之前
父節點
當前提交
7fe20af760
共有 2 個文件被更改,包括 2 次插入2 次删除
  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
 int
-main(void)
+main(int argc, char *argv[])
 {
 {
     /* Platform */
     /* Platform */
     SDL_Window *win;
     SDL_Window *win;

+ 1 - 1
demo/sdl_opengl3/main.c

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