Files
MaaAssistantArknights/include/AsstPort.h
dantmnf 20a5574780 feat: Wine 支持 (#8960)
* feat: WineRuntimeInformation

* fix: system theme crash under wine

* refactor: toast notification

* feat: add destory callback

* feat: detect winegcc

* feat: use native MaaCore under Wine

* feat: libnotify integration

* chore: disable hardware accelration under Wine

* fix: distorted icon under Wine

* chore: use Environment.ProcessPath instead of cursed alternatives

* chore: don't filter *.exe when using native MaaCore

* chore: force Aero2 theme

* chore: allow build MaaWpfGui without Windows

You need to extract native .NET SDK on top of Windows .NET SDK to get a working WPF SDK.

* feat: fontconfig integration

* docs: run MaaWpfGui under Wine
2024-05-12 23:27:46 +08:00

40 lines
1.1 KiB
C

#pragma once
// The way how the function is called
#if !defined(ASST_CALL)
#if defined(__WINE__) && defined(__x86_64__)
#define ASST_CALL __attribute__((sysv_abi))
#elif defined(_WIN32)
#define ASST_CALL __stdcall
#else
#define ASST_CALL
#endif /* __WINE__ / _WIN32 */
#endif /* ASST_CALL */
// The function exported symbols
#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(__WINE__)
#define ASST_DLL_IMPORT __declspec(dllimport)
#define ASST_DLL_EXPORT __declspec(dllexport)
#define ASST_DLL_LOCAL
#else
#if __GNUC__ >= 4
#define ASST_DLL_IMPORT __attribute__((visibility("default")))
#define ASST_DLL_EXPORT __attribute__((visibility("default")))
#define ASST_DLL_LOCAL __attribute__((visibility("hidden")))
#else
#define ASST_DLL_IMPORT
#define ASST_DLL_EXPORT
#define ASST_DLL_LOCAL
#endif
#endif
#ifdef ASST_DLL_EXPORTS // defined if we are building the DLL (instead of using it)
#define ASSTAPI_PORT ASST_DLL_EXPORT
#else
#define ASSTAPI_PORT ASST_DLL_IMPORT
#endif // ASST_DLL_EXPORTS
#define ASSTAPI ASSTAPI_PORT ASST_CALL
#define ASSTLOCAL ASST_DLL_LOCAL ASST_CALL