mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
Fix OS X compile again
This commit is contained in:
parent
3e6c0d3434
commit
17e4505c7c
@ -87,13 +87,16 @@ extern const zeromem_t zeromem;
|
|||||||
#ifndef NO_MEM_TRACKING
|
#ifndef NO_MEM_TRACKING
|
||||||
// re-route classic malloc-style allocations
|
// re-route classic malloc-style allocations
|
||||||
#undef malloc
|
#undef malloc
|
||||||
#undef realloc
|
|
||||||
#undef free
|
#undef free
|
||||||
|
|
||||||
#define malloc(x) malloc_file_line(x, __FILE__, __LINE__, true, false, false)
|
#define malloc(x) malloc_file_line(x, __FILE__, __LINE__, true, false, false)
|
||||||
#define realloc(x,y) __error_realloc_is_dangerous__
|
|
||||||
#define free(x) free_file_line(x, __FILE__, __LINE__, true)
|
#define free(x) free_file_line(x, __FILE__, __LINE__, true)
|
||||||
|
|
||||||
|
#if !defined(__APPLE__) // avoid conflicts with some 3rd-party #includes
|
||||||
|
#undef realloc
|
||||||
|
#define realloc(x,y) __error_realloc_is_dangerous__
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || _MSC_VER < 1900 // < VS2015
|
#if !defined(_MSC_VER) || _MSC_VER < 1900 // < VS2015
|
||||||
#undef calloc
|
#undef calloc
|
||||||
#define calloc(x,y) __error_use_auto_alloc_clear_or_global_alloc_clear_instead__
|
#define calloc(x,y) __error_use_auto_alloc_clear_or_global_alloc_clear_instead__
|
||||||
|
Loading…
Reference in New Issue
Block a user