00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef STILDEFS_H
00027 #define STILDEFS_H
00028
00029
00030 #ifndef STIL_EXTERN
00031 # ifdef DLL_EXPORT
00032 # define STIL_EXTERN __declspec(dllexport)
00033 # endif
00034 # ifdef STIL_DLL_IMPORT
00035 # define STIL_EXTERN __declspec(dllimport)
00036 # endif
00037 # ifndef STIL_EXTERN
00038 # if defined(__GNUC__) && (__GNUC__ >= 4)
00039 # define STIL_EXTERN __attribute__ ((visibility("default")))
00040 # else
00041 # define STIL_EXTERN
00042 # endif
00043 # endif
00044 #endif
00045
00046
00047 #if defined(_MSCVER)
00048 # define STIL_DEPRECATED __declspec(deprecated)
00049 #elif defined(__GNUC__)
00050 # define STIL_DEPRECATED __attribute__ ((deprecated))
00051 #else
00052 # define STIL_DEPRECATED
00053 #endif
00054
00055 #if defined(__linux__) || defined(__FreeBSD__) || defined(solaris2) || defined(sun) || defined(sparc) || defined(sgi)
00056 # define UNIX
00057 #endif
00058
00059 #if defined(__MACOS__)
00060 # define MAC
00061 #endif
00062
00063 #if defined(__amigaos__)
00064 # define AMIGA
00065 #endif
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075 #ifdef UNIX
00076 # define SLASH '/'
00077 #elif MAC
00078 # define SLASH ':'
00079 #elif AMIGA
00080 # define SLASH '/'
00081 #else // WinDoze
00082 # define SLASH '\\'
00083 #endif
00084
00085
00086
00087 #define STIL_MAX_LINE_SIZE 91
00088
00089
00090 #define STIL_MAX_ENTRY_SIZE STIL_MAX_LINE_SIZE*100
00091
00092
00093 const char DEFAULT_PATH_TO_STIL[]="/DOCUMENTS/STIL.txt";
00094
00095
00096 const char DEFAULT_PATH_TO_BUGLIST[]="/DOCUMENTS/BUGlist.txt";
00097
00098 #endif // STILDEFS_H