Skip to content

Commit

Permalink
Simpler fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Dec 7, 2020
1 parent 3a74bdb commit 83a3ca9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/source/libhoard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ extern bool isCustomHeapInitialized();

extern "C" {

#if !defined(__GNUG__) && !defined(_WIN32)
#if defined(__GNUG__)
void * __attribute__((always_inline)) xxmalloc (size_t sz) {
#else
void * xxmalloc (size_t sz) {
Expand Down Expand Up @@ -145,7 +145,7 @@ extern "C" {
return ptr;
}

#if !defined(__GNUG__) && !defined(_WIN32)
#if defined(__GNUG__)
void __attribute__((always_inline)) xxfree (void * ptr) {
#else
void xxfree (void * ptr) {
Expand All @@ -154,7 +154,7 @@ extern "C" {
}


#if !defined(__GNUG__) && !defined(_WIN32)
#if defined(__GNUG__)
void * __attribute__((always_inline)) xxmemalign (size_t alignment, size_t sz) {
#else
void * xxmemalign (size_t alignment, size_t sz) {
Expand Down

0 comments on commit 83a3ca9

Please sign in to comment.