summaryrefslogtreecommitdiff
path: root/wiretap/file_wrappers.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2007-01-12 03:05:28 +0000
committerUlf Lamping <ulf.lamping@web.de>2007-01-12 03:05:28 +0000
commit2cbce84d411dcd9e00c91db246a01947ac2f4a69 (patch)
tree7258f1ecfd45f0c00809ca4fd05377f799dec282 /wiretap/file_wrappers.h
parentba4a3277045ee81999188cd18a72fe25e361ea35 (diff)
downloadwireshark-2cbce84d411dcd9e00c91db246a01947ac2f4a69.tar.gz
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 ... svn path=/trunk/; revision=20402
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