Move __func__ to jemalloc_internal_macros.h

test/integration/aligned_alloc.c needs it.
This commit is contained in:
Mike Hommey 2014-05-21 18:06:14 +09:00 committed by Jason Evans
parent a9df1ae622
commit 22bc570fba
2 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,6 @@
typedef intptr_t ssize_t; typedef intptr_t ssize_t;
# define PATH_MAX 1024 # define PATH_MAX 1024
# define STDERR_FILENO 2 # define STDERR_FILENO 2
# define __func__ __FUNCTION__
/* Disable warnings about deprecated system functions */ /* Disable warnings about deprecated system functions */
# pragma warning(disable: 4996) # pragma warning(disable: 4996)
#else #else

View File

@ -49,3 +49,7 @@
#ifndef JEMALLOC_HAS_RESTRICT #ifndef JEMALLOC_HAS_RESTRICT
# define restrict # define restrict
#endif #endif
#ifdef _MSC_VER
# define __func__ __FUNCTION__
#endif