1 /************************************************************************
2 ************************************************************************
4 Copyright (C) 2003-2004 GRAME, Centre National de Creation Musicale
5 ---------------------------------------------------------------------
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 ************************************************************************
20 ************************************************************************/
23 #ifndef __COMPATIBILITY__
24 #define __COMPATIBILITY__
36 bool chdir(const char* path);
37 int mkdir(const char* path, unsigned int attribute);
38 char* getcwd(char* str, unsigned int size);
40 void getFaustPathname(char* str, unsigned int size);
41 void getFaustPathname(char* str, unsigned int size);
46 #define assert(_Expression) do { bool bTest = (_Expression) != 0; } while (0)
49 #define snprintf _snprintf
50 //#define rintf(x) floor((x)+(((x) < 0 ) ? -0.5f :0.5f))
51 #define FAUST_PATH_MAX 1024
53 #if !defined(__MINGW32__)
54 double remainder(double numerator, double denominator);
67 #define FAUST_PATH_MAX 1024
69 void getFaustPathname(char* str, unsigned int size);