Skip to content

Commit

Permalink
Got rid of clang-specific define
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanren committed Jan 9, 2025
1 parent 621ed98 commit c95032c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
10 changes: 0 additions & 10 deletions harmony_model_checker/charm/global.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,3 @@ void panic(char *s){
fprintf(stderr, "Panic: %s\n", s);
exit(1);
}

#ifdef __APPLE__
void *my_aligned_alloc(size_t alignment, size_t size){
if (__builtin_available(macOS 10.15, *)) {
return aligned_alloc(alignment, size);
}
panic("aligned_alloc not available in current version of MacOSX");
return NULL;
}
#endif
5 changes: 0 additions & 5 deletions harmony_model_checker/charm/head.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@
#define HEAP_ALLOC
#else // _WIN32
#define ALIGNED_ALLOC

#include <stdlib.h>
#ifdef __APPLE__
void *my_aligned_alloc(size_t alignment, size_t size);
#else
#define my_aligned_alloc(a, s) aligned_alloc(a, s)
#endif // __APPLE__
#endif // _WIN32

#ifdef __linux__
Expand Down

0 comments on commit c95032c

Please sign in to comment.