/* * Copyright (C) 2002-2007 The DOSBox Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* $Id: cross.h,v 1.18 2007/01/08 19:45:37 qbix79 Exp $ */ #ifndef DOSBOX_CROSS_H #define DOSBOX_CROSS_H #ifndef DOSBOX_DOSBOX_H #include "dosbox.h" #endif #include #include #include #if defined (_MSC_VER) /* MS Visual C++ */ #include #include #define LONGTYPE(a) a##i64 #define snprintf _snprintf #define vsnprintf _vsnprintf #else /* LINUX / GCC */ #include #include #define LONGTYPE(a) a##LL #endif #define CROSS_LEN 512 /* Maximum filename size */ #if defined (WIN32) || defined (OS2) /* Win 32 & OS/2*/ #define CROSS_FILENAME(blah) #define CROSS_FILESPLIT '\\' #define F_OK 0 #else #define CROSS_FILENAME(blah) strreplace(blah,'\\','/') #define CROSS_FILESPLIT '/' #endif #define CROSS_NONE 0 #define CROSS_FILE 1 #define CROSS_DIR 2 #if defined (WIN32) #define ftruncate(blah,blah2) chsize(blah,blah2) #endif //Solaris maybe others #if defined (DB_HAVE_NO_POWF) #include static inline float powf (float x, float y) { return (float) pow (x,y); } #endif #endif