Changing to __POPCORN__ for defining code that is host-only

This commit is contained in:
Justin C. Miller
2019-02-02 14:44:35 -08:00
parent 73df20d195
commit a1fe745a53

View File

@@ -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); }