From a1fe745a53cbe0e73ac2451c6920090c4ce80a7b Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Sat, 2 Feb 2019 14:44:35 -0800 Subject: [PATCH] Changing to __POPCORN__ for defining code that is host-only --- src/libraries/kutil/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/kutil/memory.cpp b/src/libraries/kutil/memory.cpp index 70b1a28..59dda01 100644 --- a/src/libraries/kutil/memory.cpp +++ b/src/libraries/kutil/memory.cpp @@ -5,7 +5,7 @@ namespace std { enum class __attribute__ ((__type_visibility("default"))) align_val_t : size_t { }; } -#ifndef KUTIL_EXCLUDE_NEW_DELETE +#ifdef __POPCORN__ void * operator new(size_t n, std::align_val_t) { return kutil::malloc(n); } void * operator new (size_t n) { return kutil::malloc(n); } void * operator new[] (size_t n) { return kutil::malloc(n); }