mirror of
https://github.com/LHY0125/Gobang-Game.git
synced 2026-05-09 18:09:46 +08:00
8bddf6bb37
- 移除SDL3依赖,引入IUP图形界面库 - 更新Makefile以支持IUP编译配置 - 重构GUI模块,移除SDL相关代码 - 更新全局变量和类型定义,移除SDL依赖 - 添加IUP头文件到项目库目录 - 删除手动帧率控制(SDL_Delay),依赖IUP事件循环 - 更新编译脚本和文档说明
84 lines
2.1 KiB
C
84 lines
2.1 KiB
C
#ifndef __IUP_EXPORT_H
|
|
#define __IUP_EXPORT_H
|
|
|
|
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
|
|
/** @cond DOXYGEN_SHOULD_IGNORE_THIS */
|
|
|
|
/* Mark the official functions */
|
|
#ifndef IUP_API
|
|
#ifdef IUP_BUILD_LIBRARY
|
|
#ifdef __EMSCRIPTEN__
|
|
#include <emscripten.h>
|
|
#define IUP_API EMSCRIPTEN_KEEPALIVE
|
|
#elif WIN32
|
|
#define IUP_API __declspec(dllexport)
|
|
#elif defined(__GNUC__) && __GNUC__ >= 4
|
|
#define IUP_API __attribute__ ((visibility("default")))
|
|
#else
|
|
#define IUP_API
|
|
#endif
|
|
#else
|
|
#define IUP_API
|
|
#endif /* IUP_BUILD_LIBRARY */
|
|
#endif /* IUP_API */
|
|
|
|
/* Mark the internal SDK functions (some not official but need to be exported) */
|
|
#ifndef IUP_SDK_API
|
|
#ifdef IUP_BUILD_LIBRARY
|
|
#ifdef __EMSCRIPTEN__
|
|
#include <emscripten.h>
|
|
#define IUP_SDK_API EMSCRIPTEN_KEEPALIVE
|
|
#elif WIN32
|
|
#define IUP_SDK_API __declspec(dllexport)
|
|
#elif defined(__GNUC__) && __GNUC__ >= 4
|
|
#define IUP_SDK_API __attribute__ ((visibility("default")))
|
|
#else
|
|
#define IUP_SDK_API
|
|
#endif
|
|
#else
|
|
#define IUP_SDK_API
|
|
#endif /* IUP_BUILD_LIBRARY */
|
|
#endif /* IUP_SDK_API */
|
|
|
|
/* Mark the driver functions that need to be exported */
|
|
#ifndef IUP_DRV_API
|
|
#ifdef IUP_BUILD_LIBRARY
|
|
#ifdef __EMSCRIPTEN__
|
|
#include <emscripten.h>
|
|
#define IUP_DRV_API EMSCRIPTEN_KEEPALIVE
|
|
#elif WIN32
|
|
#define IUP_DRV_API __declspec(dllexport)
|
|
#elif defined(__GNUC__) && __GNUC__ >= 4
|
|
#define IUP_DRV_API __attribute__ ((visibility("default")))
|
|
#else
|
|
#define IUP_DRV_API
|
|
#endif
|
|
#else
|
|
#define IUP_DRV_API
|
|
#endif /* IUP_BUILD_LIBRARY */
|
|
#endif /* IUP_DRV_API */
|
|
|
|
/* Mark the IupImageLib function, it does not have a header of its own */
|
|
#ifndef IUPIMGLIB_API
|
|
#ifdef IUPIMGLIB_BUILD_LIBRARY
|
|
#ifdef __EMSCRIPTEN__
|
|
#include <emscripten.h>
|
|
#define IUPIMGLIB_API EMSCRIPTEN_KEEPALIVE
|
|
#elif WIN32
|
|
#define IUPIMGLIB_API __declspec(dllexport)
|
|
#elif defined(__GNUC__) && __GNUC__ >= 4
|
|
#define IUPIMGLIB_API __attribute__ ((visibility("default")))
|
|
#else
|
|
#define IUPIMGLIB_API
|
|
#endif
|
|
#else
|
|
#define IUPIMGLIB_API
|
|
#endif /* IUPIMGLIB_BUILD_LIBRARY */
|
|
#endif /* IUPIMGLIB_API */
|
|
|
|
/** @endcond DOXYGEN_SHOULD_IGNORE_THIS */
|
|
#endif /* DOXYGEN_SHOULD_IGNORE_THIS */
|
|
|
|
|
|
#endif /* __IUP_EXPORT_H */
|