diff options
author | chappedm@gmail.com <chappedm@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2012-11-04 22:53:01 +0000 |
---|---|---|
committer | chappedm@gmail.com <chappedm@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2012-11-04 22:53:01 +0000 |
commit | 5fe91d5623c2351ba4675db71822fc6be5e2cbce (patch) | |
tree | f6a42f703a30f44cff05df5b34e5009338b8e1c9 /src/tcmalloc.cc | |
parent | 86a55316baf2a7c0718670fd7342b648e0ef4a87 (diff) | |
download | gperftools-5fe91d5623c2351ba4675db71822fc6be5e2cbce.tar.gz |
issue-450: Move includes for struct mallinfo from tcmalloc.cc to tcmalloc.h to fix compiler warnings from clang.
git-svn-id: http://gperftools.googlecode.com/svn/trunk@180 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
Diffstat (limited to 'src/tcmalloc.cc')
-rw-r--r-- | src/tcmalloc.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/tcmalloc.cc b/src/tcmalloc.cc index e9b51a4..9823230 100644 --- a/src/tcmalloc.cc +++ b/src/tcmalloc.cc @@ -131,18 +131,6 @@ #include "tcmalloc_guard.h" // for TCMallocGuard #include "thread_cache.h" // for ThreadCache -// We only need malloc.h for struct mallinfo. -#ifdef HAVE_STRUCT_MALLINFO -// Malloc can be in several places on older versions of OS X. -# if defined(HAVE_MALLOC_H) -# include <malloc.h> -# elif defined(HAVE_SYS_MALLOC_H) -# include <sys/malloc.h> -# elif defined(HAVE_MALLOC_MALLOC_H) -# include <malloc/malloc.h> -# endif -#endif - #if (defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)) && !defined(WIN32_OVERRIDE_ALLOCATORS) # define WIN32_DO_PATCHING 1 #endif |