aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/filesystem.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-06-15 10:52:53 -0700
committerGerald Combs <gerald@wireshark.org>2018-06-26 22:30:50 +0000
commitfe94133f0d06935bb5f2afe21f59bbb078d3d9d3 (patch)
tree8da435b8feeb134699837e8e88fcb7f626936431 /wsutil/filesystem.c
parentc68a1f049e3725240872639e75ad52b89c24cc01 (diff)
Remove code specific to older versions of Visual Studio.
Remove -DBUILD_WINDOWS and sections of code that we no longer use. Bug: 14715 Change-Id: Iae1a950e2f52f4ce45fcf0ae5dea06c1172c3a28 Reviewed-on: https://code.wireshark.org/review/28466 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Graham Bloice <graham.bloice@trihedral.com> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'wsutil/filesystem.c')
-rw-r--r--wsutil/filesystem.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c
index 66af09d873..028c7d19ad 100644
--- a/wsutil/filesystem.c
+++ b/wsutil/filesystem.c
@@ -2017,28 +2017,11 @@ file_exists(const char *fname)
return FALSE;
}
-#if defined(_MSC_VER) && _MSC_VER < 1900
-
- /*
- * This is a bit tricky on win32. The st_ino field is documented as:
- * "The inode, and therefore st_ino, has no meaning in the FAT, ..."
- * but it *is* set to zero if stat() returns without an error,
- * so this is working, but maybe not quite the way expected. ULFL
- */
- file_stat.st_ino = 1; /* this will make things work if an error occurred */
- ws_stat64(fname, &file_stat);
- if (file_stat.st_ino == 0) {
- return TRUE;
- } else {
- return FALSE;
- }
-#else
if (ws_stat64(fname, &file_stat) != 0 && errno == ENOENT) {
return FALSE;
} else {
return TRUE;
}
-#endif
}
/*