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