00001 /* 00002 $Id: $ 00003 00004 Copyright (C) 2006 Kris Verbeeck <airborne@advalvas.be> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public 00017 License along with this library; if not, write to the 00018 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00019 Boston, MA 02111-1307, USA. 00020 */ 00021 00022 #ifndef VISIBILITY_H 00023 #define VISIBILITY_H 1 00024 00025 /* exported vs. hidden code */ 00026 #ifdef _MSC_VER 00027 #ifdef BUILDING_DLL 00028 #define CDDBAPI __declspec(dllexport) 00029 #else 00030 #define CDDBAPI __declspec(dllimport) 00031 #endif 00032 #define CDDBPRIVATE 00033 #else 00034 #ifdef HAVE_GCCVISIBILITYPATCH 00035 #define CDDBAPI __attribute__ ((visibility("default"))) 00036 #define CDDBPRIVATE __attribute__ ((visibility("hidden"))) 00037 #else 00038 #define CDDBAPI 00039 #define CDDBPRIVATE 00040 #endif 00041 #endif 00042 00043 #endif /* VISIBILITY_H */