Linux compiler errors

This commit is contained in:
Caelan Sayler
2024-10-20 10:19:50 +01:00
committed by Caelan
parent ce7b2dc2b7
commit 4bd1d5ec37

View File

@@ -12,8 +12,13 @@
#include <stdexcept>
#endif
#if !defined(_WIN32)
#include <string.h>
#endif
#if defined(VELOPACK_LIBC_EXPORTS) && defined(_WIN32)
#define VPKC_EXPORT __declspec(dllexport)
#define VPKC_CALL __cdecl
#pragma comment(linker, "/EXPORT:vpkc_new_update_manager")
#pragma comment(linker, "/EXPORT:vpkc_get_current_version")
#pragma comment(linker, "/EXPORT:vpkc_get_app_id")
@@ -38,12 +43,12 @@
#pragma comment(linker, "/EXPORT:vpkc_free_asset")
#elif defined(VELOPACK_LIBC_EXPORTS) && !defined(_WIN32)
#define VPKC_EXPORT __attribute__((visibility("default"))) __attribute__((used))
#define VPKC_CALL
#else
#define VPKC_EXPORT
#define VPKC_CALL
#endif
#define VPKC_CALL __cdecl
#ifdef __cplusplus
extern "C" {
#endif