ucommon
ucommon/export.h
Go to the documentation of this file.
00001 // Copyright (C) 2006-2014 David Sugar, Tycho Softworks.
00002 //
00003 // This file is part of GNU uCommon C++.
00004 //
00005 // GNU uCommon C++ is free software: you can redistribute it and/or modify
00006 // it under the terms of the GNU Lesser General Public License as published
00007 // by the Free Software Foundation, either version 3 of the License, or
00008 // (at your option) any later version.
00009 //
00010 // GNU uCommon C++ 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 Lesser General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU Lesser General Public License
00016 // along with GNU uCommon C++.  If not, see <http://www.gnu.org/licenses/>.
00017 
00031 #if defined(_MSC_VER) || defined(WIN32) || defined(_WIN32)
00032 #ifdef  __EXPORT
00033 #undef  __EXPORT
00034 #endif
00035 
00036 #ifdef  __SHARED
00037 #undef  __SHARED
00038 #endif
00039 
00040 #ifdef  UCOMMON_STATIC
00041 #define __EXPORT
00042 #else
00043 #define __EXPORT __declspec(dllexport)
00044 #endif
00045 
00046 #if defined(UCOMMON_STATIC) || defined(UCOMMON_RUNTIME)
00047 #define __SHARED
00048 #else
00049 #define __SHARED __declspec(dllexport)
00050 #endif
00051 
00052 #endif
00053