mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 00:18:37 -05:00
Update aligned_malloc implementation on Android, so it works with API level 23
This commit is contained in:
parent
b70496c1cc
commit
edb63f7d8a
@ -18,8 +18,9 @@ namespace ldpctool {
|
|||||||
class LDPCUtil
|
class LDPCUtil
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__) || defined(ANDROID)
|
||||||
// Recent versions of MacOS support aligned_alloc, but Mojave doesn't
|
// Recent versions of MacOS support aligned_alloc, but Mojave doesn't
|
||||||
|
// Likewise, API level 28 needed for aligned_alloc on Android, but we want to support 23
|
||||||
static void *aligned_malloc(size_t alignment, size_t size)
|
static void *aligned_malloc(size_t alignment, size_t size)
|
||||||
{
|
{
|
||||||
void *p = nullptr;
|
void *p = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user