mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
build: Use dllimport/dllexport on Win32 targets.
Tested with x86_64-w64-mingw32-gcc. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
d27fee64ab
commit
cdb9c5808e
@@ -53,6 +53,17 @@ enum vkd3d_result
|
||||
VKD3D_FORCE_32_BIT_ENUM(VKD3D_RESULT),
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
# define VKD3D_IMPORT __declspec(dllimport)
|
||||
# define VKD3D_EXPORT __declspec(dllexport)
|
||||
#elif defined(__GNUC__)
|
||||
# define VKD3D_IMPORT
|
||||
# define VKD3D_EXPORT __attribute__((visibility("default")))
|
||||
#else
|
||||
# define VKD3D_IMPORT
|
||||
# define VKD3D_EXPORT
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
Reference in New Issue
Block a user