We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 840b3f9 commit 65c982fCopy full SHA for 65c982f
src/config.c
@@ -880,7 +880,7 @@ static ctmbstr ExpandTilde( TidyDocImpl* doc, ctmbstr filename )
880
if (home_dir) {
881
++filename;
882
}
883
-#ifdef _MSC_VER
+#ifdef _WIN32
884
else if (strlen(filename) >= 3) { /* at least '~/+1' */
885
/* no HOME env in Windows - got for HOMEDRIVE=C: HOMEPATH=\Users\user */
886
char * hd = getenv("HOMEDRIVE");
@@ -895,7 +895,7 @@ static ctmbstr ExpandTilde( TidyDocImpl* doc, ctmbstr filename )
895
896
897
898
-#endif /* _MSC_VER */
+#endif /* _WIN32 */
899
900
901
#ifdef SUPPORT_GETPWNAM
0 commit comments