rexim 4 years ago
parent
commit
1435d45d34
2 changed files with 2 additions and 2 deletions
  1. 1 1
      build_msvc.bat
  2. 1 1
      editor.c

+ 1 - 1
build_msvc.bat

@@ -1,7 +1,7 @@
 @echo off
 @echo off
 rem launch this from msvc-enabled console
 rem launch this from msvc-enabled console
 
 
-set CFLAGS=/W4 /WX /std:c11 /FC /TC /Zi /nologo
+set CFLAGS=/W4 /WX /std:c11 /wd4996 /FC /TC /Zi /nologo
 set INCLUDES=/I SDL2\include
 set INCLUDES=/I SDL2\include
 set LIBS=SDL2\lib\x64\SDL2.lib SDL2\lib\x64\SDL2main.lib Shell32.lib
 set LIBS=SDL2\lib\x64\SDL2.lib SDL2\lib\x64\SDL2main.lib Shell32.lib
 
 

+ 1 - 1
editor.c

@@ -1,8 +1,8 @@
 #include <assert.h>
 #include <assert.h>
-#include <string.h>
 #include <stdbool.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdio.h>
 #include <errno.h>
 #include <errno.h>
+#include <string.h>
 #include "./editor.h"
 #include "./editor.h"
 
 
 #define LINE_INIT_CAPACITY 1024
 #define LINE_INIT_CAPACITY 1024