libsidplayfp  2.0.2
stildefs.h
1 /*
2  * This file is part of libsidplayfp, a SID player engine.
3  *
4  * Copyright 1998, 2002 by LaLa <LaLa@C64.org>
5  * Copyright 2012-2015 Leandro Nini <drfiemost@users.sourceforge.net>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  */
21 
22 //
23 // STIL - Common defines
24 //
25 
26 #ifndef STILDEFS_H
27 #define STILDEFS_H
28 
29 /* DLL building support on win32 hosts */
30 #ifndef STIL_EXTERN
31 # ifdef DLL_EXPORT /* defined by libtool (if required) */
32 # define STIL_EXTERN __declspec(dllexport)
33 # endif
34 # ifdef STIL_DLL_IMPORT /* define if linking with this dll */
35 # define STIL_EXTERN __declspec(dllimport)
36 # endif
37 # ifndef STIL_EXTERN /* static linking or !_WIN32 */
38 # if defined(__GNUC__) && (__GNUC__ >= 4)
39 # define STIL_EXTERN __attribute__ ((visibility("default")))
40 # else
41 # define STIL_EXTERN
42 # endif
43 # endif
44 #endif
45 
46 /* Deprecated attributes */
47 #if defined(_MSCVER)
48 # define STIL_DEPRECATED __declspec(deprecated)
49 #elif defined(__GNUC__)
50 # define STIL_DEPRECATED __attribute__ ((deprecated))
51 #else
52 # define STIL_DEPRECATED
53 #endif
54 
55 #if defined(__linux__) || defined(__FreeBSD__) || defined(solaris2) || defined(sun) || defined(sparc) || defined(sgi)
56 # define UNIX
57 #endif
58 
59 #if defined(__MACOS__)
60 # define MAC
61 #endif
62 
63 #if defined(__amigaos__)
64 # define AMIGA
65 #endif
66 
67 //
68 // Here you should define:
69 // - what the pathname separator is on your system (attempted to be defined
70 // automatically),
71 // - what function compares strings case-insensitively,
72 // - what function compares portions of strings case-insensitively.
73 //
74 
75 #ifdef UNIX
76 # define SLASH '/'
77 #elif defined MAC
78 # define SLASH ':'
79 #elif defined AMIGA
80 # define SLASH '/'
81 #else // WinDoze
82 # define SLASH '\\'
83 #endif
84 
85 // Default HVSC path to STIL.
86 const char DEFAULT_PATH_TO_STIL[]="/DOCUMENTS/STIL.txt";
87 
88 // Default HVSC path to BUGlist.
89 const char DEFAULT_PATH_TO_BUGLIST[]="/DOCUMENTS/BUGlist.txt";
90 
91 #endif // STILDEFS_H