mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
ntfsprogs Builds on Windows use macroes to translate printing formats,
and these macroes redefined "buf" in a way which causes trouble when "buf" has another meaning. Use "_b" instead.
This commit is contained in:
parent
800660f728
commit
2f373dee56
@ -109,17 +109,17 @@ int mft_next_record(struct mft_search_ctx *ctx);
|
||||
char *ntfs_utils_reformat(char *out, int sz, const char *fmt);
|
||||
char *ntfs_utils_unix_path(const char *in);
|
||||
#define ntfs_log_redirect(fn,fi,li,le,d,fmt, args...) \
|
||||
do { char buf[MAX_FMT]; ntfs_log_redirect(fn,fi,li,le,d, \
|
||||
ntfs_utils_reformat(buf,MAX_FMT,fmt), args); } while (0)
|
||||
do { char _b[MAX_FMT]; ntfs_log_redirect(fn,fi,li,le,d, \
|
||||
ntfs_utils_reformat(_b,MAX_FMT,fmt), args); } while (0)
|
||||
#define printf(fmt, args...) \
|
||||
do { char buf[MAX_FMT]; \
|
||||
printf(ntfs_utils_reformat(buf,MAX_FMT,fmt), args); } while (0)
|
||||
do { char _b[MAX_FMT]; \
|
||||
printf(ntfs_utils_reformat(_b,MAX_FMT,fmt), args); } while (0)
|
||||
#define fprintf(str, fmt, args...) \
|
||||
do { char buf[MAX_FMT]; \
|
||||
fprintf(str, ntfs_utils_reformat(buf,MAX_FMT,fmt), args); } while (0)
|
||||
do { char _b[MAX_FMT]; \
|
||||
fprintf(str, ntfs_utils_reformat(_b,MAX_FMT,fmt), args); } while (0)
|
||||
#define vfprintf(file, fmt, args) \
|
||||
do { char buf[MAX_FMT]; vfprintf(file, \
|
||||
ntfs_utils_reformat(buf,MAX_FMT,fmt), args); } while (0)
|
||||
do { char _b[MAX_FMT]; vfprintf(file, \
|
||||
ntfs_utils_reformat(_b,MAX_FMT,fmt), args); } while (0)
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user