2001-10-03 17:10:38 +04:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
2011-02-25 01:05:47 +03:00
|
|
|
// $Id$
|
2001-10-03 17:10:38 +04:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2018-05-21 19:11:46 +03:00
|
|
|
// Copyright (C) 2001-2018 The Bochs Project
|
2001-04-10 06:02:05 +04:00
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
2009-08-22 23:30:23 +04:00
|
|
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2009-01-16 21:18:59 +03:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
2001-04-10 06:02:05 +04:00
|
|
|
|
2001-04-10 05:51:16 +04:00
|
|
|
//
|
|
|
|
// osdep.h
|
2001-04-10 06:02:05 +04:00
|
|
|
//
|
|
|
|
// requires Bit32u/Bit64u from config.h, size_t from stdio.h
|
2008-02-06 01:57:43 +03:00
|
|
|
//
|
|
|
|
// Operating system dependent includes and defines for Bochs. These
|
2001-04-10 06:02:05 +04:00
|
|
|
// declarations can be included by C or C++., but they require definition of
|
|
|
|
// size_t beforehand. This makes it difficult to place them into either
|
|
|
|
// config.h or bochs.h. If in config.h, size_t is not always available yet.
|
2008-02-06 01:57:43 +03:00
|
|
|
// If in bochs.h, they can't be included by C programs so they lose.
|
2001-04-10 05:51:16 +04:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef BX_OSDEP_H
|
|
|
|
#define BX_OSDEP_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2001-06-22 17:35:48 +04:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// Hacks for win32, but exclude MINGW32 because it doesn't need them.
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#ifdef WIN32
|
2001-10-05 10:07:00 +04:00
|
|
|
|
2001-06-22 17:35:48 +04:00
|
|
|
#ifndef __MINGW32__
|
2003-06-07 23:16:55 +04:00
|
|
|
|
2002-03-06 21:04:58 +03:00
|
|
|
// Definitions that are needed for WIN32 compilers EXCEPT FOR
|
|
|
|
// cygwin compiling with -mno-cygwin. e.g. VC++.
|
2001-10-05 10:07:00 +04:00
|
|
|
|
2006-01-17 21:17:01 +03:00
|
|
|
#if !defined(_MSC_VER) // gcc without -mno-cygwin
|
2017-08-23 00:03:58 +03:00
|
|
|
#define FMT_64 "ll"
|
2006-01-17 21:17:01 +03:00
|
|
|
#define FMT_LL "%ll"
|
|
|
|
#define FMT_TICK "%011llu"
|
2006-01-28 00:35:45 +03:00
|
|
|
#define FMT_ADDRX64 "%016llx"
|
2013-02-13 01:26:23 +04:00
|
|
|
#define FMT_PHY_ADDRX64 "%012llx"
|
2006-01-17 21:17:01 +03:00
|
|
|
#else
|
2017-08-23 00:03:58 +03:00
|
|
|
#define FMT_64 "I64"
|
2006-01-17 21:17:01 +03:00
|
|
|
#define FMT_LL "%I64"
|
|
|
|
#define FMT_TICK "%011I64u"
|
2006-01-28 00:35:45 +03:00
|
|
|
#define FMT_ADDRX64 "%016I64x"
|
2013-02-13 01:26:23 +04:00
|
|
|
#define FMT_PHY_ADDRX64 "%012I64x"
|
2006-01-17 21:17:01 +03:00
|
|
|
#endif
|
|
|
|
|
2001-06-22 17:35:48 +04:00
|
|
|
// always return regular file.
|
2010-11-01 17:50:18 +03:00
|
|
|
#ifndef S_ISREG
|
2001-10-01 21:01:00 +04:00
|
|
|
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
2010-11-01 17:50:18 +03:00
|
|
|
#endif
|
|
|
|
#ifndef S_ISCHR
|
2001-10-01 21:01:00 +04:00
|
|
|
# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
|
2010-11-01 17:50:18 +03:00
|
|
|
#endif
|
2001-06-22 17:35:48 +04:00
|
|
|
|
2013-11-01 22:19:52 +04:00
|
|
|
#if defined(_MSC_VER)
|
2001-06-22 17:35:48 +04:00
|
|
|
// win32 has snprintf though with different name.
|
|
|
|
#define snprintf _snprintf
|
2004-02-08 13:22:29 +03:00
|
|
|
#define vsnprintf _vsnprintf
|
|
|
|
#undef BX_HAVE_SNPRINTF
|
|
|
|
#undef BX_HAVE_VSNPRINTF
|
|
|
|
#define BX_HAVE_SNPRINTF 1
|
|
|
|
#define BX_HAVE_VSNPRINTF 1
|
2004-08-19 23:42:22 +04:00
|
|
|
|
2011-01-09 22:20:11 +03:00
|
|
|
#define access _access
|
|
|
|
#define fdopen _fdopen
|
|
|
|
#define mktemp _mktemp
|
2004-08-19 23:42:22 +04:00
|
|
|
#define off_t __int64
|
|
|
|
#define lseek _lseeki64
|
2012-08-26 18:43:14 +04:00
|
|
|
#define fseeko64 _fseeki64
|
2004-08-19 23:42:22 +04:00
|
|
|
#define fstat _fstati64
|
|
|
|
#define stat _stati64
|
2009-04-21 19:37:17 +04:00
|
|
|
#define read _read
|
|
|
|
#define write _write
|
|
|
|
#define open _open
|
|
|
|
#define close _close
|
|
|
|
#define unlink _unlink
|
|
|
|
#define strdup _strdup
|
|
|
|
#define strrev _strrev
|
2009-10-02 20:11:06 +04:00
|
|
|
#define stricmp _stricmp
|
2009-04-21 19:37:17 +04:00
|
|
|
#define getch _getch
|
2014-02-07 02:00:29 +04:00
|
|
|
#define strtoll _strtoi64
|
2011-03-03 19:03:59 +03:00
|
|
|
#define strtoull _strtoui64
|
2014-12-23 14:53:35 +03:00
|
|
|
#define isatty _isatty
|
|
|
|
#define fileno _fileno
|
2004-08-19 23:42:22 +04:00
|
|
|
#endif
|
|
|
|
|
2006-01-17 21:17:01 +03:00
|
|
|
#else /* __MINGW32__ defined */
|
|
|
|
// Definitions for cygwin compiled with -mno-cygwin
|
2017-08-23 00:03:58 +03:00
|
|
|
#define FMT_64 "I64"
|
2006-01-17 21:17:01 +03:00
|
|
|
#define FMT_LL "%I64"
|
|
|
|
#define FMT_TICK "%011I64u"
|
2006-02-11 23:47:22 +03:00
|
|
|
#define FMT_ADDRX64 "%016I64x"
|
2013-02-13 01:33:00 +04:00
|
|
|
#define FMT_PHY_ADDRX64 "%012I64x"
|
2004-08-19 23:42:22 +04:00
|
|
|
|
|
|
|
#define off_t __int64
|
2011-10-01 00:38:18 +04:00
|
|
|
// mingw gcc 4.6.1 already has lseek defined
|
|
|
|
#ifndef lseek
|
2004-08-19 23:42:22 +04:00
|
|
|
#define lseek _lseeki64
|
2011-10-01 00:38:18 +04:00
|
|
|
#endif
|
2006-01-17 21:17:01 +03:00
|
|
|
#endif /* __MINGW32__ defined */
|
2004-08-19 23:42:22 +04:00
|
|
|
|
2006-01-17 21:17:01 +03:00
|
|
|
#else /* not WIN32 definitions */
|
2011-01-02 19:13:06 +03:00
|
|
|
#if SIZEOF_UNSIGNED_LONG == 8
|
2017-08-23 00:03:58 +03:00
|
|
|
#define FMT_64 "l"
|
2011-01-02 19:13:06 +03:00
|
|
|
#define FMT_LL "%l"
|
|
|
|
#define FMT_TICK "%011lu"
|
|
|
|
#define FMT_ADDRX64 "%016lx"
|
2013-02-13 01:33:00 +04:00
|
|
|
#define FMT_PHY_ADDRX64 "%012lx"
|
2011-01-02 19:13:06 +03:00
|
|
|
#else
|
2017-08-23 00:03:58 +03:00
|
|
|
#define FMT_64 "ll"
|
2003-06-07 23:16:55 +04:00
|
|
|
#define FMT_LL "%ll"
|
2004-09-19 22:38:09 +04:00
|
|
|
#define FMT_TICK "%011llu"
|
2006-01-28 18:10:33 +03:00
|
|
|
#define FMT_ADDRX64 "%016llx"
|
2013-02-13 01:33:00 +04:00
|
|
|
#define FMT_PHY_ADDRX64 "%012llx"
|
2011-01-02 19:13:06 +03:00
|
|
|
#endif
|
2006-01-17 21:17:01 +03:00
|
|
|
#endif /* not WIN32 definitions */
|
|
|
|
|
2006-02-11 23:47:22 +03:00
|
|
|
#define FMT_ADDRX32 "%08x"
|
2017-08-23 00:03:58 +03:00
|
|
|
#define FMT_ADDRX16 "%04x"
|
|
|
|
|
2001-06-22 17:35:48 +04:00
|
|
|
|
2003-05-07 00:28:13 +04:00
|
|
|
// Missing defines for open
|
|
|
|
#ifndef S_IRUSR
|
|
|
|
#define S_IRUSR 0400
|
|
|
|
#define S_IWUSR 0200
|
2003-05-07 01:53:36 +04:00
|
|
|
#endif
|
|
|
|
#ifndef S_IRGRP
|
2003-05-07 00:28:13 +04:00
|
|
|
#define S_IRGRP 0040
|
|
|
|
#define S_IWGRP 0020
|
2003-05-07 01:53:36 +04:00
|
|
|
#endif
|
|
|
|
#ifndef S_IROTH
|
2003-05-07 00:28:13 +04:00
|
|
|
#define S_IROTH 0004
|
|
|
|
#define S_IWOTH 0002
|
2003-05-07 01:53:36 +04:00
|
|
|
#endif
|
2003-05-07 00:28:13 +04:00
|
|
|
|
2001-04-10 06:02:05 +04:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// Missing library functions.
|
|
|
|
// These should work on any platform that needs them.
|
2008-02-06 01:57:43 +03:00
|
|
|
//
|
2001-04-10 06:02:05 +04:00
|
|
|
// A missing library function is renamed to a bx_* function, so that when
|
|
|
|
// debugging and linking there's no confusion over which version is used.
|
2008-02-06 01:57:43 +03:00
|
|
|
// Because of renaming, the bx_* replacement functions can be tested on
|
2001-04-10 06:02:05 +04:00
|
|
|
// machines which have the real library function without duplicate symbols.
|
|
|
|
//
|
2008-02-06 01:57:43 +03:00
|
|
|
// If you're considering implementing a missing library function, note
|
2001-04-10 06:02:05 +04:00
|
|
|
// that it might be cleaner to conditionally disable the function call!
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
2001-04-10 05:51:16 +04:00
|
|
|
|
2001-04-10 06:02:05 +04:00
|
|
|
#if !BX_HAVE_SNPRINTF
|
2004-02-08 13:22:29 +03:00
|
|
|
#define snprintf bx_snprintf
|
2001-04-10 05:51:16 +04:00
|
|
|
extern int bx_snprintf (char *s, size_t maxlen, const char *format, ...);
|
|
|
|
#endif
|
|
|
|
|
2004-02-08 13:22:29 +03:00
|
|
|
#if !BX_HAVE_VSNPRINTF
|
|
|
|
#define vsnprintf bx_vsnprintf
|
|
|
|
extern int bx_vsnprintf (char *s, size_t maxlen, const char *format, va_list arg);
|
|
|
|
#endif
|
|
|
|
|
2001-05-17 11:00:42 +04:00
|
|
|
#if BX_HAVE_STRTOULL
|
|
|
|
// great, just use the usual function
|
|
|
|
#elif BX_HAVE_STRTOUQ
|
|
|
|
// they have strtouq and not strtoull
|
|
|
|
#define strtoull strtouq
|
|
|
|
#else
|
|
|
|
#define strtoull bx_strtoull
|
2001-04-10 06:02:05 +04:00
|
|
|
extern Bit64u bx_strtoull (const char *nptr, char **endptr, int baseignore);
|
|
|
|
#endif
|
2001-04-10 05:51:16 +04:00
|
|
|
|
2001-04-10 06:02:05 +04:00
|
|
|
#if !BX_HAVE_STRDUP
|
|
|
|
#define strdup bx_strdup
|
|
|
|
extern char *bx_strdup(const char *str);
|
2001-04-10 05:51:16 +04:00
|
|
|
#endif
|
|
|
|
|
2003-01-11 01:32:46 +03:00
|
|
|
#if !BX_HAVE_STRREV
|
|
|
|
#define strrev bx_strrev
|
|
|
|
extern char *bx_strrev(char *str);
|
|
|
|
#endif
|
|
|
|
|
2009-10-02 20:11:06 +04:00
|
|
|
#if BX_HAVE_STRICMP
|
2009-02-02 16:03:28 +03:00
|
|
|
// great, just use the usual function
|
|
|
|
#elif BX_HAVE_STRCASECMP
|
|
|
|
#define stricmp strcasecmp
|
|
|
|
#else
|
|
|
|
// FIXME: for now using case sensitive function
|
|
|
|
#define stricmp strcmp
|
|
|
|
#endif
|
|
|
|
|
2002-03-08 07:45:00 +03:00
|
|
|
#if !BX_HAVE_SOCKLEN_T
|
|
|
|
// needed on MacOS X 10.1
|
|
|
|
typedef int socklen_t;
|
|
|
|
#endif
|
|
|
|
|
2013-12-04 21:04:15 +04:00
|
|
|
#if !BX_HAVE_SSIZE_T
|
|
|
|
// needed on Windows
|
|
|
|
typedef Bit64s ssize_t;
|
|
|
|
#endif
|
|
|
|
|
2003-05-07 00:28:13 +04:00
|
|
|
#if !BX_HAVE_MKSTEMP
|
|
|
|
#define mkstemp bx_mkstemp
|
2011-06-16 01:55:48 +04:00
|
|
|
BOCHSAPI_MSVCONLY extern int bx_mkstemp(char *tpl);
|
2003-05-07 00:28:13 +04:00
|
|
|
#endif
|
|
|
|
|
2001-04-10 06:02:05 +04:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// Missing library functions, implemented for MacOS only
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#if BX_WITH_MACOS
|
|
|
|
// fd_read and fd_write are called by floppy.cc to access the Mac
|
|
|
|
// floppy drive directly, since the MacOS doesn't have "special"
|
|
|
|
// pathnames which map directly to IO devices
|
2001-04-10 05:51:16 +04:00
|
|
|
|
2001-04-10 06:02:05 +04:00
|
|
|
int fd_read(char *buffer, Bit32u offset, Bit32u bytes);
|
|
|
|
int fd_write(char *buffer, Bit32u offset, Bit32u bytes);
|
|
|
|
int fd_stat(struct stat *buf);
|
2002-12-12 18:29:45 +03:00
|
|
|
FILE * fdopen(int fd, const char *type);
|
|
|
|
|
|
|
|
typedef long ssize_t ;
|
2001-04-10 06:02:05 +04:00
|
|
|
#endif
|
2001-04-10 05:51:16 +04:00
|
|
|
|
2002-09-23 06:20:52 +04:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
2013-05-24 21:58:49 +04:00
|
|
|
// Missing library functions and byte-swapping stuff,
|
|
|
|
// implemented for MorphOS only
|
2013-04-12 21:26:27 +04:00
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifdef __MORPHOS__
|
|
|
|
int fseeko(FILE *stream, off_t offset, int whence);
|
|
|
|
struct tm *localtime_r(const time_t *timep, struct tm *result);
|
2013-05-24 21:58:49 +04:00
|
|
|
|
|
|
|
BX_CPP_INLINE Bit16u bx_ppc_bswap16(Bit16u val)
|
|
|
|
{
|
|
|
|
Bit32u res;
|
|
|
|
|
|
|
|
__asm__("rlwimi %0,%0,16,8,15"
|
|
|
|
: "=r" (res)
|
|
|
|
: "0" (val));
|
|
|
|
|
|
|
|
return (Bit16u)(res >> 8);
|
|
|
|
}
|
|
|
|
|
|
|
|
BX_CPP_INLINE Bit32u bx_ppc_bswap32(Bit32u val)
|
|
|
|
{
|
|
|
|
Bit32u res;
|
|
|
|
|
|
|
|
__asm__("rotlwi %0,%1,8\n\t"
|
|
|
|
"rlwimi %0,%1,24,0,7\n\t"
|
|
|
|
"rlwimi %0,%1,24,16,23"
|
|
|
|
: "=&r" (res)
|
|
|
|
: "r" (val));
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
BX_CPP_INLINE Bit64u bx_ppc_bswap64(Bit64u val)
|
|
|
|
{
|
|
|
|
Bit32u hi, lo;
|
|
|
|
|
|
|
|
__asm__("rotlwi %0,%2,8\n\t"
|
|
|
|
"rlwimi %0,%2,24,0,7\n\t"
|
|
|
|
"rlwimi %0,%2,24,16,23\n\t"
|
|
|
|
"rotlwi %1,%3,8\n\t"
|
|
|
|
"rlwimi %1,%3,24,0,7\n\t"
|
|
|
|
"rlwimi %1,%3,24,16,23"
|
|
|
|
: "=&r" (hi), "=&r" (lo)
|
|
|
|
: "r" ((Bit32u)(val & 0xffffffff)), "r" ((Bit32u)(val >> 32)));
|
|
|
|
|
|
|
|
return ((Bit64u)hi << 32) | (Bit64u)lo;
|
|
|
|
}
|
|
|
|
|
|
|
|
BX_CPP_INLINE Bit16u bx_ppc_load_le16(const Bit16u *p)
|
|
|
|
{
|
|
|
|
Bit16u v;
|
|
|
|
__asm__("lhbrx %0, 0, %1"
|
|
|
|
: "=r" (v)
|
|
|
|
: "r" (p), "m" (*p));
|
|
|
|
return v;
|
|
|
|
}
|
|
|
|
|
|
|
|
BX_CPP_INLINE void bx_ppc_store_le16(Bit16u *p, Bit16u v)
|
|
|
|
{
|
|
|
|
__asm__("sthbrx %1, 0, %2"
|
|
|
|
: "=m" (*p)
|
|
|
|
: "r" (v), "r" (p));
|
|
|
|
}
|
|
|
|
|
|
|
|
BX_CPP_INLINE Bit32u bx_ppc_load_le32(const Bit32u *p)
|
|
|
|
{
|
|
|
|
Bit32u v;
|
|
|
|
__asm__("lwbrx %0, 0, %1"
|
|
|
|
: "=r" (v)
|
|
|
|
: "r" (p), "m" (*p));
|
|
|
|
return v;
|
|
|
|
}
|
|
|
|
|
|
|
|
BX_CPP_INLINE void bx_ppc_store_le32(Bit32u *p, Bit32u v)
|
|
|
|
{
|
|
|
|
__asm__("stwbrx %1, 0, %2"
|
|
|
|
: "=m" (*p)
|
|
|
|
: "r" (v), "r" (p));
|
|
|
|
}
|
|
|
|
|
|
|
|
BX_CPP_INLINE Bit64u bx_ppc_load_le64(const Bit64u *p)
|
|
|
|
{
|
|
|
|
Bit32u hi, lo;
|
|
|
|
|
|
|
|
__asm__("lwbrx %0, 0, %2\n\t"
|
|
|
|
"lwbrx %1, 0, %3"
|
|
|
|
: "=&r" (lo), "=&r" (hi)
|
|
|
|
: "r" ((Bit32u *)p), "r" ((Bit32u *)p+1));
|
|
|
|
|
|
|
|
return ((Bit64u)hi << 32) | (Bit64u)lo;
|
|
|
|
}
|
|
|
|
|
|
|
|
BX_CPP_INLINE void bx_ppc_store_le64(Bit64u *p, Bit64u v)
|
|
|
|
{
|
|
|
|
__asm__("stwbrx %1, 0, %3\n\t"
|
|
|
|
"stwbrx %2, 0, %4"
|
|
|
|
: "=m" (*p)
|
|
|
|
: "r" ((Bit32u)(v & 0xffffffff)), "r" ((Bit32u)(v >> 32)),
|
|
|
|
"r" ((Bit32u *)p), "r" ((Bit32u *)p+1));
|
|
|
|
}
|
2013-04-12 21:26:27 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
2002-09-23 06:20:52 +04:00
|
|
|
// New functions to replace library functions
|
|
|
|
// with OS-independent versions
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#if BX_HAVE_REALTIME_USEC
|
|
|
|
// 64-bit time in useconds.
|
2018-05-21 19:11:46 +03:00
|
|
|
BOCHSAPI_MSVCONLY extern Bit64u bx_get_realtime64_usec (void);
|
2002-09-23 06:20:52 +04:00
|
|
|
#endif
|
|
|
|
|
2003-08-20 10:26:27 +04:00
|
|
|
#ifdef WIN32
|
|
|
|
#undef BX_HAVE_MSLEEP
|
|
|
|
#define BX_HAVE_MSLEEP 1
|
2009-04-21 19:37:17 +04:00
|
|
|
#if !defined(__MINGW32__) && !defined(_MSC_VER)
|
2003-08-20 10:26:27 +04:00
|
|
|
#define msleep(msec) _sleep(msec)
|
|
|
|
#else
|
|
|
|
#define msleep(msec) Sleep(msec)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2001-04-10 05:51:16 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2011-10-15 23:29:42 +04:00
|
|
|
// these macros required for large ramfile option functionality
|
|
|
|
#if BX_HAVE_TMPFILE64 == 0
|
|
|
|
#define tmpfile64 tmpfile /* use regular tmpfile() function */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if BX_HAVE_FSEEKO64 == 0
|
|
|
|
#if BX_HAVE_FSEEK64
|
|
|
|
#define fseeko64 fseek64 /* use fseek64() function */
|
2012-08-26 18:43:14 +04:00
|
|
|
#elif !defined(_MSC_VER)
|
2011-10-15 23:29:42 +04:00
|
|
|
#define fseeko64 fseeko /* use regular fseeko() function */
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2001-04-10 05:51:16 +04:00
|
|
|
#endif /* ifdef BX_OSDEP_H */
|