diff --git a/build_vs2013/lc/lc.vcxproj b/build_vs2013/lc/lc.vcxproj
index 83c9fcc..b02de95 100644
--- a/build_vs2013/lc/lc.vcxproj
+++ b/build_vs2013/lc/lc.vcxproj
@@ -19,13 +19,13 @@
-
-
-
-
+
{c6e64e54-0635-4a2b-b404-145ea82a761f}
+
+
+
{E5D80D5A-FDE6-44FE-9E97-DF3D470DD5E9}
Win32Proj
diff --git a/build_vs2013/linecount/linecount.vcxproj b/build_vs2013/linecount/linecount.vcxproj
index 4a6c038..cb5516d 100644
--- a/build_vs2013/linecount/linecount.vcxproj
+++ b/build_vs2013/linecount/linecount.vcxproj
@@ -5,10 +5,24 @@
Debug
Win32
+
+ Debug
+ x64
+
Release
Win32
+
+ Release
+ x64
+
+
+
+
+
+
+
{76AA0AD7-A400-467D-8D9D-12D787043C0A}
@@ -22,6 +36,12 @@
v120
Unicode
+
+ DynamicLibrary
+ true
+ v120
+ Unicode
+
DynamicLibrary
false
@@ -29,22 +49,41 @@
true
Unicode
+
+ DynamicLibrary
+ false
+ v120
+ true
+ Unicode
+
+
+
+
+
+
+
true
+
+ true
+
false
+
+ false
+
@@ -58,6 +97,19 @@
true
+
+
+
+
+ Level3
+ Disabled
+ WIN32;_DEBUG;_WINDOWS;_USRDLL;LINECOUNT_EXPORTS;%(PreprocessorDefinitions)
+
+
+ Windows
+ true
+
+
Level3
@@ -75,12 +127,23 @@
true
-
-
-
-
-
-
+
+
+ Level3
+
+
+ MaxSpeed
+ true
+ true
+ WIN32;NDEBUG;_WINDOWS;_USRDLL;LINECOUNT_EXPORTS;%(PreprocessorDefinitions)
+
+
+ Windows
+ true
+ true
+ true
+
+
diff --git a/build_vs2013/linecount_static/linecount_static.vcxproj b/build_vs2013/linecount_static/linecount_static.vcxproj
index 1775ea1..f467491 100644
--- a/build_vs2013/linecount_static/linecount_static.vcxproj
+++ b/build_vs2013/linecount_static/linecount_static.vcxproj
@@ -5,16 +5,24 @@
Debug
Win32
+
+ Debug
+ x64
+
Release
Win32
+
+ Release
+ x64
+
-
+
-
+
{C6E64E54-0635-4A2B-B404-145EA82A761F}
@@ -28,6 +36,12 @@
v120
Unicode
+
+ StaticLibrary
+ true
+ v120
+ Unicode
+
StaticLibrary
false
@@ -35,15 +49,28 @@
true
Unicode
+
+ StaticLibrary
+ false
+ v120
+ true
+ Unicode
+
+
+
+
+
+
+
@@ -59,6 +86,19 @@
true
+
+
+
+
+ Level3
+ Disabled
+ WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)
+
+
+ Windows
+ true
+
+
Level3
@@ -76,6 +116,23 @@
true
+
+
+ Level3
+
+
+ MaxSpeed
+ true
+ true
+ WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)
+
+
+ Windows
+ true
+ true
+ true
+
+
diff --git a/build_vs2013/turbo-linecount.sln b/build_vs2013/turbo-linecount.sln
index 8e5923f..4c510b1 100644
--- a/build_vs2013/turbo-linecount.sln
+++ b/build_vs2013/turbo-linecount.sln
@@ -27,16 +27,20 @@ Global
{E5D80D5A-FDE6-44FE-9E97-DF3D470DD5E9}.Release|x64.Build.0 = Release|x64
{76AA0AD7-A400-467D-8D9D-12D787043C0A}.Debug|Win32.ActiveCfg = Debug|Win32
{76AA0AD7-A400-467D-8D9D-12D787043C0A}.Debug|Win32.Build.0 = Debug|Win32
- {76AA0AD7-A400-467D-8D9D-12D787043C0A}.Debug|x64.ActiveCfg = Debug|Win32
+ {76AA0AD7-A400-467D-8D9D-12D787043C0A}.Debug|x64.ActiveCfg = Debug|x64
+ {76AA0AD7-A400-467D-8D9D-12D787043C0A}.Debug|x64.Build.0 = Debug|x64
{76AA0AD7-A400-467D-8D9D-12D787043C0A}.Release|Win32.ActiveCfg = Release|Win32
{76AA0AD7-A400-467D-8D9D-12D787043C0A}.Release|Win32.Build.0 = Release|Win32
- {76AA0AD7-A400-467D-8D9D-12D787043C0A}.Release|x64.ActiveCfg = Release|Win32
+ {76AA0AD7-A400-467D-8D9D-12D787043C0A}.Release|x64.ActiveCfg = Release|x64
+ {76AA0AD7-A400-467D-8D9D-12D787043C0A}.Release|x64.Build.0 = Release|x64
{C6E64E54-0635-4A2B-B404-145EA82A761F}.Debug|Win32.ActiveCfg = Debug|Win32
{C6E64E54-0635-4A2B-B404-145EA82A761F}.Debug|Win32.Build.0 = Debug|Win32
- {C6E64E54-0635-4A2B-B404-145EA82A761F}.Debug|x64.ActiveCfg = Debug|Win32
+ {C6E64E54-0635-4A2B-B404-145EA82A761F}.Debug|x64.ActiveCfg = Debug|x64
+ {C6E64E54-0635-4A2B-B404-145EA82A761F}.Debug|x64.Build.0 = Debug|x64
{C6E64E54-0635-4A2B-B404-145EA82A761F}.Release|Win32.ActiveCfg = Release|Win32
{C6E64E54-0635-4A2B-B404-145EA82A761F}.Release|Win32.Build.0 = Release|Win32
- {C6E64E54-0635-4A2B-B404-145EA82A761F}.Release|x64.ActiveCfg = Release|Win32
+ {C6E64E54-0635-4A2B-B404-145EA82A761F}.Release|x64.ActiveCfg = Release|x64
+ {C6E64E54-0635-4A2B-B404-145EA82A761F}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/src/turbo_linecount.cpp b/src/turbo_linecount.cpp
index d758afd..54c41f4 100644
--- a/src/turbo_linecount.cpp
+++ b/src/turbo_linecount.cpp
@@ -52,6 +52,7 @@ typedef off_t LCFILEOFFSET;
#define LCCLOSEFILE(handle) (::close(handle) != -1)
#define LCINVALIDHANDLE -1
#define LCSETREALLASTERROR(err, errstr) { int __err = errno; setLastError(__err, ::strerror(__err)); }
+#define _tcsdup strdup
#endif