diff --git a/project/msvc/grafx2-sdl2.vcxproj b/project/msvc/grafx2-sdl2.vcxproj
index b025baa4..51719957 100644
--- a/project/msvc/grafx2-sdl2.vcxproj
+++ b/project/msvc/grafx2-sdl2.vcxproj
@@ -89,14 +89,20 @@
     
   
   
+    
+    
     
     
     
+    
+    
     
     
+    
     
     
     
+    
     
     
     
@@ -107,7 +113,9 @@
     
     
     
+    
     
+    
     
     
     
@@ -115,11 +123,13 @@
     
     
     
+    
     
     
     
     
     
+    
     
     
     
@@ -154,11 +164,18 @@
     
   
   
+    
+      CPU_6502_STATIC;CPU_6502_USE_LOCAL_HEADER;CPU_6502_DEPENDENCIES_H="6502types.h";%(PreprocessorDefinitions)
+      CPU_6502_STATIC;CPU_6502_USE_LOCAL_HEADER;CPU_6502_DEPENDENCIES_H="6502types.h";%(PreprocessorDefinitions)
+    
     
     
     
     
+    
+    
     
+    
     
     
     
@@ -169,6 +186,7 @@
     
     
     
+    
     
     
     
@@ -177,15 +195,20 @@
     
     
     
+    
     
     
     
+    
     
+    
     
     
     
+    
     
     
+    
     
     
     
@@ -206,6 +229,7 @@
     
     
     
+    
     
     
     
diff --git a/project/msvc/grafx2-sdl2.vcxproj.filters b/project/msvc/grafx2-sdl2.vcxproj.filters
index 7f4b24e1..1d4338f3 100644
--- a/project/msvc/grafx2-sdl2.vcxproj.filters
+++ b/project/msvc/grafx2-sdl2.vcxproj.filters
@@ -195,6 +195,36 @@
     
       Fichiers d%27en-tête
     
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
   
   
     
@@ -379,5 +409,38 @@
     
       Fichiers sources
     
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
   
 
\ No newline at end of file
diff --git a/project/msvc/grafx2-win32.vcxproj b/project/msvc/grafx2-win32.vcxproj
index d79cb76d..3d72a582 100644
--- a/project/msvc/grafx2-win32.vcxproj
+++ b/project/msvc/grafx2-win32.vcxproj
@@ -82,11 +82,18 @@
     
   
   
+    
+      CPU_6502_STATIC;CPU_6502_USE_LOCAL_HEADER;CPU_6502_DEPENDENCIES_H="6502types.h";%(PreprocessorDefinitions)
+      CPU_6502_STATIC;CPU_6502_USE_LOCAL_HEADER;CPU_6502_DEPENDENCIES_H="6502types.h";%(PreprocessorDefinitions)
+    
     
     
     
     
+    
+    
     
+    
     
     
     
@@ -97,6 +104,7 @@
     
     
     
+    
     
     
     
@@ -105,15 +113,20 @@
     
     
     
+    
     
     
     
+    
     
+    
     
     
     
+    
     
     
+    
     
     
     
@@ -133,6 +146,7 @@
     
     
     
+    
     
     
     
@@ -143,9 +157,13 @@
     
   
   
+    
+    
     
     
     
+    
+    
     
     
     
@@ -170,11 +188,13 @@
     
     
     
+    
     
     
     
     
     
+    
     
     
     
diff --git a/project/msvc/grafx2-win32.vcxproj.filters b/project/msvc/grafx2-win32.vcxproj.filters
index 28ebc61b..03e94f5c 100644
--- a/project/msvc/grafx2-win32.vcxproj.filters
+++ b/project/msvc/grafx2-win32.vcxproj.filters
@@ -192,6 +192,39 @@
     
       Fichiers sources
     
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
   
   
     
@@ -371,6 +404,24 @@
     
       Fichiers d%27en-tête
     
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
   
   
     
diff --git a/project/msvc/grafx2.vcxproj b/project/msvc/grafx2.vcxproj
index 31c4c18a..4a1704a2 100644
--- a/project/msvc/grafx2.vcxproj
+++ b/project/msvc/grafx2.vcxproj
@@ -89,14 +89,20 @@
     
   
   
+    
+    
     
     
     
+    
+    
     
     
+    
     
     
     
+    
     
     
     
@@ -107,7 +113,9 @@
     
     
     
+    
     
+    
     
     
     
@@ -115,11 +123,13 @@
     
     
     
+    
     
     
     
     
     
+    
     
     
     
@@ -154,11 +164,18 @@
     
   
   
+    
+      CPU_6502_STATIC;CPU_6502_USE_LOCAL_HEADER;CPU_6502_DEPENDENCIES_H="6502types.h";%(PreprocessorDefinitions)
+      CPU_6502_STATIC;CPU_6502_USE_LOCAL_HEADER;CPU_6502_DEPENDENCIES_H="6502types.h";%(PreprocessorDefinitions)
+    
     
     
     
     
+    
+    
     
+    
     
     
     
@@ -169,6 +186,7 @@
     
     
     
+    
     
     
     
@@ -177,15 +195,20 @@
     
     
     
+    
     
     
     
+    
     
+    
     
     
     
+    
     
     
+    
     
     
     
@@ -206,6 +229,7 @@
     
     
     
+    
     
     
     
diff --git a/project/msvc/grafx2.vcxproj.filters b/project/msvc/grafx2.vcxproj.filters
index 7f4b24e1..dba58b27 100644
--- a/project/msvc/grafx2.vcxproj.filters
+++ b/project/msvc/grafx2.vcxproj.filters
@@ -195,6 +195,36 @@
     
       Fichiers d%27en-tête
     
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
+    
+      Fichiers d%27en-tête
+    
   
   
     
@@ -379,5 +409,38 @@
     
       Fichiers sources
     
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
+    
+      Fichiers sources
+    
   
 
\ No newline at end of file
diff --git a/src/motoformats.c b/src/motoformats.c
index 1b415a65..f8d9b391 100644
--- a/src/motoformats.c
+++ b/src/motoformats.c
@@ -29,6 +29,9 @@
 
 #include 
 #include 
+#if defined(_MSC_VER)
+#define strdup _strdup
+#endif
 #include "struct.h"
 #include "io.h"
 #include "loadsave.h"