Commit bdde76df authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix win* compilation and cosmetics

Sorry for the mistake
parent 72f56af8
...@@ -363,9 +363,9 @@ block_t *block_mmap_Alloc (void *addr, size_t length) ...@@ -363,9 +363,9 @@ block_t *block_mmap_Alloc (void *addr, size_t length)
#ifdef WIN32 #ifdef WIN32
# include <io.h> # include <io.h>
#ifdef UNDER_CE # ifdef UNDER_CE
#define _get_osfhandle(a) ((long) (a)) # define _get_osfhandle(a) ((long) (a))
#endif # endif
static static
ssize_t pread (int fd, void *buf, size_t count, off_t offset) ssize_t pread (int fd, void *buf, size_t count, off_t offset)
...@@ -383,9 +383,7 @@ ssize_t pread (int fd, void *buf, size_t count, off_t offset) ...@@ -383,9 +383,7 @@ ssize_t pread (int fd, void *buf, size_t count, off_t offset)
return written; return written;
return -1; return -1;
} }
#endif #elif !defined( HAVE_PREAD )
#ifndef HAVE_PREAD
static static
ssize_t pread(int fd, const void * buf, size_t size, off_t offset) { ssize_t pread(int fd, const void * buf, size_t size, off_t offset) {
off_t offs0; off_t offs0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment