Commit fa81206b authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Remove portability.hh

parent 2b29c1da
......@@ -42,7 +42,6 @@ SET(${PROJECT_NAME}_HEADERS
include/hpp/util/exception-factory.hh
include/hpp/util/indent.hh
include/hpp/util/pointer.hh
include/hpp/util/portability.hh
include/hpp/util/timer.hh
include/hpp/util/version.hh
include/hpp/util/parser.hh
......
......@@ -12,7 +12,5 @@
# define HPP_UTIL_HH
# include <hpp/util/debug.hh>
# include <hpp/util/indent.hh>
# include <hpp/util/kitelab.hh>
# include <hpp/util/portability.hh>
# include <hpp/util/timer.hh>
#endif //! HPP_UTIL_HH
// Copyright (C) 2008, 2009 by Thomas Moulard, CNRS.
//
// This file is part of the hpp-util.
//
// This software is provided "as is" without warranty of any kind,
// either expressed or implied, including but not limited to the
// implied warranties of fitness for a particular purpose.
//
// See the COPYING file for more information.
#ifndef HPP_PORTABILITY_HH
# define HPP_PORTABILITY_HH
// Handle portable symbol export.
// Defining manually which symbol should be exported is required
// under Windows whether MinGW or MSVC is used.
//
// The headers then have to be able to work in two different modes:
// - dllexport when one is building the library,
// - dllimport for clients using the library.
//
// On Linux, set the visibility accordingly. If C++ symbol visibility
// is handled by the compiler, see: http://gcc.gnu.org/wiki/Visibility
# if defined _WIN32 || defined __CYGWIN__
// On Microsoft Windows, use dllimport and dllexport to tag symbols.
# define HPP_DLLIMPORT __declspec(dllimport)
# define HPP_DLLEXPORT __declspec(dllexport)
# define HPP_DLLLOCAL
# else
// On Linux, for GCC >= 4, tag symbols using GCC extension.
# if __GNUC__ >= 4
# define HPP_DLLIMPORT __attribute__ ((visibility("default")))
# define HPP_DLLEXPORT __attribute__ ((visibility("default")))
# define HPP_DLLLOCAL __attribute__ ((visibility("hidden")))
# else
// Otherwise (GCC < 4 or another compiler is used), export everything.
# define HPP_DLLIMPORT
# define HPP_DLLEXPORT
# define HPP_DLLLOCAL
# endif // __GNUC__ >= 4
# endif // defined _WIN32 || defined __CYGWIN__
#endif //! HPP_PORTABILITY_HH
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment