Files
2026-08-05 22:42:22 +08:00

34 lines
850 B
C

/*
* lib/ui-xml/include/ui_xml/common.h
*
* Copyright (c) 2023-2026, Liu Chao <hello@lcui.dev> All rights reserved.
*
* SPDX-License-Identifier: MIT
*
* This file is part of LCUI, distributed under the MIT License found
* in the LICENSE.TXT file in the root directory of this source tree.
*/
#include "config.h"
#ifdef __cplusplus
#define LIBUI_XML_BEGIN_DECLS extern "C" {
#define LIBUI_XML_END_DECLS }
#else
#define LIBUI_XML_BEGIN_DECLS
#define LIBUI_XML_END_DECLS
#endif
#ifndef LIBUI_XML_PUBLIC
#if defined(_MSC_VER) && !defined(LIBUI_XML_STATIC_BUILD)
#ifdef LIBUI_XML_DLL_EXPORT
#define LIBUI_XML_PUBLIC __declspec(dllexport)
#else
#define LIBUI_XML_PUBLIC __declspec(dllimport)
#endif
#elif __GNUC__ >= 4
#define LIBUI_XML_PUBLIC extern __attribute__((visibility("default")))
#else
#define LIBUI_XML_PUBLIC extern
#endif
#endif