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