http://stxxl.sourceforge.net
<tb@panthema.net>
http://www.boost.org/LICENSE_1_0.txt
#ifndef STXXL_IO_UFS_PLATFORM_HEADER
#define STXXL_IO_UFS_PLATFORM_HEADER
#if STXXL_WINDOWS || defined(__MINGW32__)
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#include <io.h>
#else
#include <unistd.h>
#endif
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <cstdio>
#ifndef S_ISBLK
#define S_ISBLK(x) 0
#endif
#ifndef O_SYNC
#define O_SYNC 0
#endif
#ifndef O_RSYNC
#define O_RSYNC 0
#endif
#ifndef O_DSYNC
#define O_DSYNC 0
#endif
#if defined (__linux__)
#if !defined(O_DIRECT)
#error O_DIRECT is not defined while __linux__ is - PLEASE REPORT THIS BUG
#endif
#if !defined (O_DIRECT) && (defined (__alpha__) || defined (__i386__))
#define O_DIRECT 040000
#endif
#endif
#ifndef O_DIRECT
#define O_DIRECT O_SYNC
#endif
#if STXXL_WINDOWS
#ifndef lseek
#define lseek _lseeki64
#endif
#ifndef off_t
#define off_t int64
#endif
#endif
#endif