aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_wrappers.h
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-12 03:05:28 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-12 03:05:28 +0000
commit6e51586ef635711e2c26051f36fcced3de408272 (patch)
tree7258f1ecfd45f0c00809ca4fd05377f799dec282 /wiretap/file_wrappers.h
parent329c28c3881f611a67522a24f96cdeb8e5dc068b (diff)
Win32: MSVC > 6 doesn't work well with Unicode filenames!
fix this, by providing required functions in the new file file_util.c - it's mostly copied from GLib (g_open alike - that take UTF8 as filename format but don't use msvcrt.dll V6 for this as the glib files do) "link" to these functions in file_util.h: #define eth_open eth_stdio_open revert changes (from SVN 20282) throughout the code related to these file functions which were introduced with the first tries of MSVC 2005 ... Hopefully I've done everything right with the new file_util.c ... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20402 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/file_wrappers.h')
-rw-r--r--wiretap/file_wrappers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/file_wrappers.h b/wiretap/file_wrappers.h
index 9dcf643ff6..22d4a24b8c 100644
--- a/wiretap/file_wrappers.h
+++ b/wiretap/file_wrappers.h
@@ -40,7 +40,7 @@ extern FILE_T file_open(const char *path, const char *mode);
#define file_eof gzeof
#else /* No zLib */
-/* XXX - mixing eth_xxx and fxxx calls might not be a good idea with MSVC 2005! */
+
#define file_open(path, mode) eth_fopen(path, mode)
#define filed_open fdopen
#define file_read fread