libsidplayfp 1.0.3
stildefs.h
00001 /*
00002  * This file is part of libsidplayfp, a SID player engine.
00003  *
00004  * Copyright 1998, 2002 by LaLa <LaLa@C64.org>
00005  * Copyright 2012-2013 Leandro Nini <drfiemost@users.sourceforge.net>
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00020  */
00021 
00022 //
00023 // STIL - Common defines
00024 //
00025 
00026 #ifndef STILDEFS_H
00027 #define STILDEFS_H
00028 
00029 /* DLL building support on win32 hosts */
00030 #ifndef STIL_EXTERN
00031 #   ifdef DLL_EXPORT      /* defined by libtool (if required) */
00032 #       define STIL_EXTERN __declspec(dllexport)
00033 #   endif
00034 #   ifdef STIL_DLL_IMPORT  /* define if linking with this dll */
00035 #       define STIL_EXTERN __declspec(dllimport)
00036 #   endif
00037 #   ifndef STIL_EXTERN     /* static linking or !_WIN32 */
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 /* Deprecated attributes */
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 // Here you should define:
00069 // - what the pathname separator is on your system (attempted to be defined
00070 //   automatically),
00071 // - what function compares strings case-insensitively,
00072 // - what function compares portions of strings case-insensitively.
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 // Maximum size of a single line in STIL - also accounts for some extra
00086 // padding, just in case.
00087 #define STIL_MAX_LINE_SIZE 91
00088 
00089 // Maximum size of a single STIL entry (in bytes).
00090 #define STIL_MAX_ENTRY_SIZE STIL_MAX_LINE_SIZE*100
00091 
00092 // HVSC path to STIL.
00093 const char DEFAULT_PATH_TO_STIL[]="/DOCUMENTS/STIL.txt";
00094 
00095 // HVSC path to BUGlist.
00096 const char DEFAULT_PATH_TO_BUGLIST[]="/DOCUMENTS/BUGlist.txt";
00097 
00098 #endif // STILDEFS_H