Include debug.h and remove duplicated code. (Yuval)

(Logical change 1.455)
edge.strict_endians
cantab.net!aia21 2004-07-13 15:05:15 +00:00
parent ae0653cc18
commit a93c3f9549
1 changed files with 1 additions and 13 deletions

View File

@ -43,6 +43,7 @@ struct ntfs_volume;
typedef struct ntfs_volume ntfs_volume;
#include "config.h"
#include "debug.h"
/* Need device, but prevent ../include/types.h to be loaded. */
#define _NTFS_TYPES_H
@ -59,19 +60,6 @@ typedef struct win32_fd {
LARGE_INTEGER current_pos;
} win32_fd;
#ifdef DEBUG
static __inline__ void Dprintf(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
}
#else
static __inline__ void Dprintf(const char *fmt, ...) {}
#endif
#define perror(msg) win32_perror(__FILE__,__LINE__,__FUNCTION__,msg)
static int win32_perror(const char *file, int line, const char *func,