1 /***************************************************************************** 2 * asa: portable digital subtitle renderer 3 ***************************************************************************** 4 * Copyright (C) 2007 David Lamparter 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 ****************************************************************************/ 20 21 22 #ifndef _VISIBILITY_H 23 #define _VISIBILITY_H 24 25 #ifdef HAVE_CONFIG_H 26 #include "acconf.h" 27 #endif 28 29 #if defined(_WIN32) && !defined(CSRI_NO_EXPORT) 30 #define export __declspec(dllexport) 31 #define internal 32 #define hidden 33 #elif HAVE_GCC_VISIBILITY 34 #define export __attribute__((visibility ("default"))) 35 #define internal __attribute__((visibility ("internal"))) 36 #define hidden __attribute__((visibility ("hidden"))) 37 #else 38 #define export 39 #define internal 40 #define hidden 41 #endif 42 43 #endif /* _VISIBILITY_H */ 44