mirror of
https://github.com/gperftools/gperftools
synced 2025-02-26 09:00:28 +00:00
generate vsprojects/gperftools/tcmalloc.h from our main tcmalloc.h
This will save me from risk of forgetting to update this file manually when bumping package version.
This commit is contained in:
parent
d6728a0b4c
commit
689752dc38
@ -649,6 +649,9 @@ AS_IF([test "x$enable_aggressive_decommit_by_default" = xyes],
|
||||
[enable aggressive decommit by default])])
|
||||
|
||||
# Write generated configuration file
|
||||
# NOTE: vsprojects/gperftools/tcmalloc.h is checked in
|
||||
AC_CONFIG_FILES([Makefile
|
||||
src/gperftools/tcmalloc.h])
|
||||
src/gperftools/tcmalloc.h
|
||||
vsprojects/gperftools/tcmalloc.h:src/gperftools/tcmalloc.h.in
|
||||
])
|
||||
AC_OUTPUT
|
||||
|
@ -47,10 +47,12 @@
|
||||
#define TC_VERSION_PATCH "@TC_VERSION_PATCH@"
|
||||
#define TC_VERSION_STRING "gperftools @TC_VERSION_MAJOR@.@TC_VERSION_MINOR@@TC_VERSION_PATCH@"
|
||||
|
||||
#ifndef _WIN32
|
||||
/* For struct mallinfo, if it's defined. */
|
||||
#if @ac_cv_have_struct_mallinfo@ || @ac_cv_have_struct_mallinfo2@
|
||||
# include <malloc.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef PERFTOOLS_NOTHROW
|
||||
|
||||
@ -108,11 +110,14 @@ extern "C" {
|
||||
|
||||
PERFTOOLS_DLL_DECL void tc_malloc_stats(void) PERFTOOLS_NOTHROW;
|
||||
PERFTOOLS_DLL_DECL int tc_mallopt(int cmd, int value) PERFTOOLS_NOTHROW;
|
||||
|
||||
#ifndef _WIN32
|
||||
#if @ac_cv_have_struct_mallinfo@
|
||||
PERFTOOLS_DLL_DECL struct mallinfo tc_mallinfo(void) PERFTOOLS_NOTHROW;
|
||||
#endif
|
||||
#if @ac_cv_have_struct_mallinfo2@
|
||||
PERFTOOLS_DLL_DECL struct mallinfo2 tc_mallinfo2(void) PERFTOOLS_NOTHROW;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
// -*- Mode: C; c-basic-offset: 2; indent-tabs-mode: nil -*-
|
||||
/* -*- Mode: C; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
||||
/* Copyright (c) 2003, Google Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -47,6 +47,13 @@
|
||||
#define TC_VERSION_PATCH ""
|
||||
#define TC_VERSION_STRING "gperftools 2.15"
|
||||
|
||||
#ifndef _WIN32
|
||||
/* For struct mallinfo, if it's defined. */
|
||||
#if 1 || 1
|
||||
# include <malloc.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef PERFTOOLS_NOTHROW
|
||||
|
||||
#ifdef __cplusplus
|
||||
@ -104,6 +111,15 @@ extern "C" {
|
||||
PERFTOOLS_DLL_DECL void tc_malloc_stats(void) PERFTOOLS_NOTHROW;
|
||||
PERFTOOLS_DLL_DECL int tc_mallopt(int cmd, int value) PERFTOOLS_NOTHROW;
|
||||
|
||||
#ifndef _WIN32
|
||||
#if 1
|
||||
PERFTOOLS_DLL_DECL struct mallinfo tc_mallinfo(void) PERFTOOLS_NOTHROW;
|
||||
#endif
|
||||
#if 1
|
||||
PERFTOOLS_DLL_DECL struct mallinfo2 tc_mallinfo2(void) PERFTOOLS_NOTHROW;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* This is an alias for MallocExtension::instance()->GetAllocatedSize().
|
||||
* It is equivalent to
|
||||
|
Loading…
Reference in New Issue
Block a user