libsidplayfp
1.0.3
|
00001 /* 00002 * This file is part of libsidplayfp, a SID player engine. 00003 * 00004 * Copyright 2011-2013 Leandro Nini <drfiemost@users.sourceforge.net> 00005 * Copyright 2007-2010 Antti Lankila 00006 * Copyright 2000-2001 Simon White 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00021 */ 00022 00023 #ifndef SIDDEFS_H 00024 #define SIDDEFS_H 00025 00026 /* DLL building support on win32 hosts */ 00027 #ifndef SID_EXTERN 00028 # ifdef DLL_EXPORT /* defined by libtool (if required) */ 00029 # define SID_EXTERN __declspec(dllexport) 00030 # endif 00031 # ifdef SID_DLL_IMPORT /* define if linking with this dll */ 00032 # define SID_EXTERN __declspec(dllimport) 00033 # endif 00034 # ifndef SID_EXTERN /* static linking or !_WIN32 */ 00035 # if defined(__GNUC__) && (__GNUC__ >= 4) 00036 # define SID_EXTERN __attribute__ ((visibility("default"))) 00037 # else 00038 # define SID_EXTERN 00039 # endif 00040 # endif 00041 #endif 00042 00043 /* Deprecated attributes */ 00044 #if defined(_MSCVER) 00045 # define SID_DEPRECATED __declspec(deprecated) 00046 #elif defined(__GNUC__) 00047 # define SID_DEPRECATED __attribute__ ((deprecated)) 00048 #else 00049 # define SID_DEPRECATED 00050 #endif 00051 00052 /* Unused attributes */ 00053 #if defined(__GNUC__) 00054 # define SID_UNUSED __attribute__ ((unused)) 00055 #else 00056 # define SID_UNUSED 00057 #endif 00058 00059 /* Namespace support */ 00060 #define SIDPLAYFP_NAMESPACE __sidplayfp__ 00061 #ifdef SIDPLAYFP_NAMESPACE 00062 # define SIDPLAYFP_NAMESPACE_START \ 00063 namespace SIDPLAYFP_NAMESPACE \ 00064 { 00065 # define SIDPLAYFP_NAMESPACE_STOP \ 00066 } 00067 #else 00068 # define SIDPLAYFP_NAMESPACE_START 00069 # define SIDPLAYFP_NAMESPACE_STOP 00070 #endif 00071 00072 #endif /* SIDDEFS_H */