blob: f186678a04ae4e34115903f1b0173e4964aa2548 [file] [log] [blame]
// Copyright (C) 2015 The Android Open Source Project
//
// This software is licensed under the terms of the GNU General Public
// License version 2, as published by the Free Software Foundation, and
// may be copied, distributed, and modified under those terms.
//
// This program 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 General Public License for more details.
#pragma once
// AEMU_UI_API
#if defined(AEMU_CRASH_SHARED) && defined(_MSC_VER)
# if defined(AEMU_CRASH_EXPORTS)
# define AEMU_CRASH_API __declspec(dllexport)
# define AEMU_CRASH_API_TEMPLATE_DECLARE
# define AEMU_CRASH_API_TEMPLATE_DEFINE __declspec(dllexport)
# else
# define AEMU_CRASH_API __declspec(dllimport)
# define AEMU_CRASH_API_TEMPLATE_DECLARE
# define AEMU_CRASH_API_TEMPLATE_DEFINE __declspec(dllimport)
# endif // defined(AEMU_CRASH_EXPORTS)
#elif defined(AEMU_CRASH_SHARED)
# define AEMU_CRASH_API __attribute__((visibility("default")))
# define AEMU_CRASH_API_TEMPLATE_DECLARE __attribute__((visibility("default")))
# define AEMU_CRASH_API_TEMPLATE_DEFINE
#else
# define AEMU_CRASH_API
# define AEMU_CRASH_API_TEMPLATE_DECLARE
# define AEMU_CRASH_API_TEMPLATE_DEFINE
#endif