|
FAUST compiler
0.9.9.6b8
|
00001 /************************************************************************ 00002 ************************************************************************ 00003 FAUST compiler 00004 Copyright (C) 2003-2004 GRAME, Centre National de Creation Musicale 00005 --------------------------------------------------------------------- 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 ************************************************************************ 00020 ************************************************************************/ 00021 00022 00023 #ifndef __COMPATIBILITY__ 00024 #define __COMPATIBILITY__ 00025 00026 00027 #if defined (WIN32) 00028 00029 #include <windows.h> 00030 00031 #ifdef WIN32 00032 #undef min 00033 #undef max 00034 #endif 00035 00036 bool chdir(const char* path); 00037 int mkdir(const char* path, unsigned int attribute); 00038 char* getcwd(char* str, unsigned int size); 00039 int isatty(int file); 00040 void getFaustPathname(char* str, unsigned int size); 00041 void getFaustPathname(char* str, unsigned int size); 00042 00043 #include <assert.h> 00044 #ifdef NDEBUG 00045 #undef assert 00046 #define assert(_Expression) do { bool bTest = (_Expression) != 0; } while (0) 00047 #endif 00048 00049 #define snprintf _snprintf 00050 //#define rintf(x) floor((x)+(((x) < 0 ) ? -0.5f :0.5f)) 00051 #define FAUST_PATH_MAX 1024 00052 00053 #if !defined(__MINGW32__) 00054 double remainder(double numerator, double denominator); 00055 #define S_IRWXU 0 00056 #endif 00057 00058 #define S_IRWXG 0 00059 #define S_IROTH 0 00060 #define S_IXOTH 0 00061 #define DIRSEP '\\' 00062 00063 #else 00064 00065 #include <unistd.h> 00066 #define DIRSEP '/' 00067 #define FAUST_PATH_MAX 1024 00068 00069 void getFaustPathname(char* str, unsigned int size); 00070 00071 #endif 00072 00073 #endif
1.8.0