Gnash 0.8.9
|
00001 // Copyright (C) 2006, 2007, 2008, 2009, 2010, 00002 // 2011 Free Software Foundation, Inc 00003 // 00004 // This program is free software; you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation; either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program; if not, write to the Free Software 00016 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00017 // 00018 00019 #ifndef DSODEFS_H 00020 #define DSODEFS_H 00021 00022 #ifdef HAVE_CONFIG_H 00023 #include "gnashconfig.h" 00024 #endif 00025 00026 #if defined(_MSC_VER) || defined(WIN32) || defined(_WIN32) 00027 // #ifdef BUILDING_DLL 00028 #ifdef DLL_EXPORT 00029 #define DSOEXPORT __declspec(dllexport) 00030 #else 00031 // Temporarily commented because of VC++ compiler problems 00032 #define DSOEXPORT // __declspec(dllimport) 00033 #endif 00034 00035 #define DSOLOCAL 00036 #elif defined(__OS2__) 00037 #ifdef BUILDING_DLL 00038 #define DSOEXPORT __declspec(dllexport) 00039 #else 00040 // Temporarily commented because of VC++ compiler problems 00041 #define DSOEXPORT // __declspec(dllimport) 00042 #endif 00043 00044 #define DSOLOCAL 00045 00046 #else 00047 #ifdef HAVE_GNUC_VISIBILITY 00048 #define DSOEXPORT __attribute__ ((visibility("default"))) 00049 #define DSOLOCAL __attribute__ ((visibility("hidden"))) 00050 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) /* Sun Studio >= 8 */ 00051 #define DSOEXPORT __global 00052 #define DSOLOCAL __hidden 00053 #else 00054 #define DSOEXPORT 00055 #define DSOLOCAL 00056 #endif 00057 #endif 00058 00059 #endif // DSODEFS_H