00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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 char* dirname(char *path);
00043
00044 #include <assert.h>
00045 #ifdef NDEBUG
00046 #undef assert
00047 #define assert(_Expression) do { bool bTest = (_Expression) != 0; } while (0)
00048 #endif
00049
00050 #define snprintf _snprintf
00051
00052 #define FAUST_PATH_MAX 1024
00053
00054 #if !defined(__MINGW32__)
00055 double remainder(double numerator, double denominator);
00056 #define S_IRWXU 0
00057 #endif
00058
00059 #define S_IRWXG 0
00060 #define S_IROTH 0
00061 #define S_IXOTH 0
00062 #define DIRSEP '\\'
00063
00064 #else
00065
00066 #include <unistd.h>
00067 #define DIRSEP '/'
00068 #define FAUST_PATH_MAX 1024
00069
00070 void getFaustPathname(char* str, unsigned int size);
00071
00072 #endif
00073
00074 #endif