fix sglog windows/msvc build issues caused by the recent sglog refactor

This commit is contained in:
Mamadou Babaei
2025-06-04 02:26:03 +02:00
parent 63b5a71832
commit e20ed9d6a3
+12
View File
@@ -145,6 +145,7 @@ struct TFSGLogString<char*>
} }
}; };
#if ! PLATFORM_ANDROID && PLATFORM_LINUX
template<std::size_t L> template<std::size_t L>
struct TFSGLogString<const char16_t[L]> struct TFSGLogString<const char16_t[L]>
{ {
@@ -153,7 +154,9 @@ struct TFSGLogString<const char16_t[L]>
OutString = FString(StringCast<TCHAR>(Value).Get()); OutString = FString(StringCast<TCHAR>(Value).Get());
} }
}; };
#endif /* ! PLATFORM_ANDROID && PLATFORM_LINUX */
#if ! PLATFORM_ANDROID && PLATFORM_LINUX
template<std::size_t L> template<std::size_t L>
struct TFSGLogString<char16_t[L]> struct TFSGLogString<char16_t[L]>
{ {
@@ -162,7 +165,9 @@ struct TFSGLogString<char16_t[L]>
OutString = FString(StringCast<TCHAR>(Value).Get()); OutString = FString(StringCast<TCHAR>(Value).Get());
} }
}; };
#endif /* ! PLATFORM_ANDROID && PLATFORM_LINUX */
#if ! PLATFORM_ANDROID && PLATFORM_LINUX
template<> template<>
struct TFSGLogString<const char16_t*> struct TFSGLogString<const char16_t*>
{ {
@@ -171,7 +176,9 @@ struct TFSGLogString<const char16_t*>
OutString = FString(StringCast<TCHAR>(Value).Get()); OutString = FString(StringCast<TCHAR>(Value).Get());
} }
}; };
#endif /* ! PLATFORM_ANDROID && PLATFORM_LINUX */
#if ! PLATFORM_ANDROID && PLATFORM_LINUX
template<> template<>
struct TFSGLogString<char16_t*> struct TFSGLogString<char16_t*>
{ {
@@ -180,6 +187,7 @@ struct TFSGLogString<char16_t*>
OutString = FString(StringCast<TCHAR>(Value).Get()); OutString = FString(StringCast<TCHAR>(Value).Get());
} }
}; };
#endif /* ! PLATFORM_ANDROID && PLATFORM_LINUX */
template<> template<>
struct TFSGLogString<const double> struct TFSGLogString<const double>
@@ -419,6 +427,7 @@ struct TFSGLogString<long double>
} }
}; };
#if ! PLATFORM_ANDROID && PLATFORM_LINUX
template<> template<>
struct TFSGLogString<const std::size_t> struct TFSGLogString<const std::size_t>
{ {
@@ -427,7 +436,9 @@ struct TFSGLogString<const std::size_t>
OutString = LexToString(Value); OutString = LexToString(Value);
} }
}; };
#endif /* ! PLATFORM_ANDROID && PLATFORM_LINUX */
#if ! PLATFORM_ANDROID && PLATFORM_LINUX
template<> template<>
struct TFSGLogString<std::size_t> struct TFSGLogString<std::size_t>
{ {
@@ -436,6 +447,7 @@ struct TFSGLogString<std::size_t>
OutString = LexToString(Value); OutString = LexToString(Value);
} }
}; };
#endif /* ! PLATFORM_ANDROID && PLATFORM_LINUX */
template<> template<>
struct TFSGLogString<const uint8> struct TFSGLogString<const uint8>