/** * @file test_setting_api.hpp * * @brief @c Test_Setting-based settings plugin export macros. * * The IVI test_setting settings plugin uses these macros to * export the settings plugin API from the plugin as needed. * * @author Ossama Othman @ * * @copyright @par * Copyright 2013 Intel Corporation All Rights Reserved. * @par * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * @par * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * @par * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA */ #ifndef TEST_SETTING_API_HPP #define TEST_SETTING_API_HPP # if defined _WIN32 || defined __CYGWIN__ # ifdef TEST_SETTING_BUILDING_DLL # ifdef __GNUC__ # define TEST_SETTING_API __attribute__ ((dllexport)) # else # define TEST_SETTING_API __declspec(dllexport) # endif # else # ifdef __GNUC__ # define TEST_SETTING_API __attribute__ ((dllimport)) # else # define TEST_SETTING_API __declspec(dllimport) # endif # endif # define TEST_SETTING_LOCAL # else # if __GNUC__ >= 4 # define TEST_SETTING_API __attribute__ ((visibility ("default"))) # define TEST_SETTING_LOCAL __attribute__ ((visibility ("hidden"))) # else # define TEST_SETTING_API # define TEST_SETTING_LOCAL # endif # endif #endif /* TEST_SETTING_API_HPP */ // Local Variables: // mode:c++ // c-basic-offset:2 // indent-tabs-mode: nil // End: