mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Fix compile failure on Sun C++ 5.7 in yaSSL code
- Trying to use unctions declared as static being used from another file, change them to be inline extra/yassl/taocrypt/mySTL/helpers.hpp: Change 'GetMemory' and 'FreeMemory' function te be inline instead of static.
This commit is contained in:
@@ -142,13 +142,13 @@ void FreeArrayMemory(T* ptr)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void* GetMemory(size_t bytes)
|
inline void* GetMemory(size_t bytes)
|
||||||
{
|
{
|
||||||
return GetArrayMemory<unsigned char>(bytes);
|
return GetArrayMemory<unsigned char>(bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void FreeMemory(void* ptr)
|
inline void FreeMemory(void* ptr)
|
||||||
{
|
{
|
||||||
FreeArrayMemory(ptr);
|
FreeArrayMemory(ptr);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user