From 49e3b2e03a809b86fb7b6a48d36ed0a8397cdfb6 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 31 Oct 2011 22:42:43 +0100 Subject: [PATCH] setup.h: fix compiler warning --- lib/setup.h | 2 ++ src/setup.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/setup.h b/lib/setup.h index 84c9b1feb..0b74c8e57 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -319,6 +319,7 @@ # include # include # include +# undef lseek # define lseek(fdes,offset,whence) _lseeki64(fdes, offset, whence) # define fstat(fdes,stp) _fstati64(fdes, stp) # define stat(fname,stp) _stati64(fname, stp) @@ -334,6 +335,7 @@ # include # include # include +# undef lseek # define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence) # define fstat(fdes,stp) _fstat(fdes, stp) # define stat(fname,stp) _stat(fname, stp) diff --git a/src/setup.h b/src/setup.h index 414aac73b..abb0706a7 100644 --- a/src/setup.h +++ b/src/setup.h @@ -166,6 +166,7 @@ # include # include # include +# undef lseek # define lseek(fdes,offset,whence) _lseeki64(fdes, offset, whence) # define fstat(fdes,stp) _fstati64(fdes, stp) # define stat(fname,stp) _stati64(fname, stp) @@ -181,6 +182,7 @@ # include # include # include +# undef lseek # define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence) # define fstat(fdes,stp) _fstat(fdes, stp) # define stat(fname,stp) _stat(fname, stp)