From 1a969af5a414b6554b4f014e4d2dab7e3093eabf Mon Sep 17 00:00:00 2001 From: Iain Mckay Date: Sun, 21 Jul 2019 19:52:04 +0200 Subject: [PATCH] Fixes compilation errors on Linux due to latent action addition --- Source/USharp/Private/USharpLatentAction.cpp | 6 ++++++ Source/USharp/Private/USharpLatentAction.h | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 Source/USharp/Private/USharpLatentAction.cpp diff --git a/Source/USharp/Private/USharpLatentAction.cpp b/Source/USharp/Private/USharpLatentAction.cpp new file mode 100644 index 0000000..3a07780 --- /dev/null +++ b/Source/USharp/Private/USharpLatentAction.cpp @@ -0,0 +1,6 @@ +#include "USharpLatentAction.h" + +ManagedLatentCallbackDel UUSharpAsyncActionBaseCallback = nullptr; +ManagedLatentCallbackDel UUSharpOnlineBlueprintCallProxyBaseCallback = nullptr; +ManagedLatentCallbackDel UUSharpGameplayTaskCallback = nullptr; + diff --git a/Source/USharp/Private/USharpLatentAction.h b/Source/USharp/Private/USharpLatentAction.h index ede15e2..a2c7ecd 100644 --- a/Source/USharp/Private/USharpLatentAction.h +++ b/Source/USharp/Private/USharpLatentAction.h @@ -38,9 +38,9 @@ enum class ManagedLatentCallbackType : int32 }; typedef void(CSCONV *ManagedLatentCallbackDel)(ManagedLatentCallbackType CallbackType, const void* ThisPtr, const void* Data); -ManagedLatentCallbackDel UUSharpAsyncActionBaseCallback = nullptr; -ManagedLatentCallbackDel UUSharpOnlineBlueprintCallProxyBaseCallback = nullptr; -ManagedLatentCallbackDel UUSharpGameplayTaskCallback = nullptr; +extern ManagedLatentCallbackDel UUSharpAsyncActionBaseCallback; +extern ManagedLatentCallbackDel UUSharpOnlineBlueprintCallProxyBaseCallback; +extern ManagedLatentCallbackDel UUSharpGameplayTaskCallback; class FUSharpLatentAction : public FPendingLatentAction {