Platform.hpp
Go to the documentation of this file.
00001 // ========================================================================================
00002 //  ApproxMVBB
00003 //  Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch>
00004 //
00005 //  This Source Code Form is subject to the terms of the Mozilla Public
00006 //  License, v. 2.0. If a copy of the MPL was not distributed with this
00007 //  file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008 // ========================================================================================
00009 
00010 #ifndef ApproxMVBB_Common_Platform_hpp
00011 #define ApproxMVBB_Common_Platform_hpp
00012 
00013 #include "ApproxMVBB/Config/Config.hpp"
00014 
00015 #ifdef __CYGWIN__
00016   #include "ApproxMVBB/Common/CygwinPatch.hpp"
00017 #endif
00018 
00019 namespace ApproxMVBB{
00020 
00021 #if (defined _WIN32) || (defined __CYGWIN__) || (defined WIN32)
00022 
00023   // This macro is given to the compiler when building the library!
00024   #ifdef ApproxMVBB_BUILD_LIBRARY
00025 
00026     #pragma message(" Platform.hpp: Building library ...")
00027 
00028     #ifdef __GNUC__
00029       #define APPROXMVBB_EXPORT __attribute__ ((dllexport))
00030     #else
00031       #define APPROXMVBB_EXPORT __declspec(dllexport) // Note: actually gcc seems to also supports this syntax.
00032     #endif
00033 
00034 
00035 
00036   #else
00037 
00038     #ifdef __GNUC__
00039       #define APPROXMVBB_EXPORT __attribute__ ((dllimport))
00040     #else
00041       #define APPROXMVBB_EXPORT __declspec(dllimport) // Note: actually gcc seems to also supports this syntax.
00042     #endif
00043 
00044   #endif
00045 
00046 #else
00047 
00048   #ifdef ApproxMVBB_BUILD_LIBRARY
00049 
00050     #pragma message(" Platform.hpp: Building library ...")
00051 
00052     #if __GNUC__ >= 4 ||  __clang__
00053       #define APPROXMVBB_EXPORT __attribute__ ((visibility ("default")))
00054     #else
00055       #define APPROXMVBB_EXPORT
00056       #warning "Unknown compiler: Exporting everything into library!"
00057     #endif
00058 
00059   #else
00060      #define APPROXMVBB_EXPORT
00061   #endif
00062 
00063 #endif
00064 
00065 }
00066 
00067 #endif


asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Sat Jun 8 2019 20:21:49