From d6728a0b4c57c245b866942fc9c4be837aaa263f Mon Sep 17 00:00:00 2001 From: Aliaksey Kandratsenka Date: Mon, 29 Jan 2024 20:31:21 -0500 Subject: [PATCH] drop unused PACKAGE_XYZ defines from {cmake/vsproject}/config.h Automake or autoconf adds them automagically, but we don't really need them. Main effect of this change is that MSVC version of config.h doesn't duplicate package version. --- cmake/config.h.in | 26 +------------------------- vsprojects/include/config.h | 27 --------------------------- 2 files changed, 1 insertion(+), 52 deletions(-) diff --git a/cmake/config.h.in b/cmake/config.h.in index 9518af7..22db2f2 100644 --- a/cmake/config.h.in +++ b/cmake/config.h.in @@ -164,27 +164,6 @@ /* Define to the sub-directory where libtool stores uninstalled libraries. */ #cmakedefine LT_OBJDIR -/* Name of package */ -#define PACKAGE "@PROJECT_NAME@" - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "gperftools@googlegroups.com" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "@PROJECT_NAME@" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "@PROJECT_NAME@ @PROJECT_VERSION@" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "@PROJECT_NAME@" - -/* Define to the home page for this package. */ -#cmakedefine PACKAGE_URL - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "@PROJECT_VERSION@" - /* Always the empty-string on non-windows systems. On windows, should be "__declspec(dllexport)". This way, when we compile the dll, we export our functions/classes. It's safe to define this here because config.h is only @@ -221,9 +200,6 @@ /* Define internal page size for tcmalloc as number of left bitshift */ #cmakedefine TCMALLOC_PAGE_SIZE_SHIFT @TCMALLOC_PAGE_SIZE_SHIFT@ -/* Version number of package */ -#define VERSION @PROJECT_VERSION@ - /* C99 says: define this to get the PRI... macros from stdint.h */ #ifndef __STDC_FORMAT_MACROS # define __STDC_FORMAT_MACROS 1 @@ -234,4 +210,4 @@ #include "windows/port.h" #endif /* WIN32 */ -#endif /* GPERFTOOLS_CONFIG_H_ */ \ No newline at end of file +#endif /* GPERFTOOLS_CONFIG_H_ */ diff --git a/vsprojects/include/config.h b/vsprojects/include/config.h index 9d0821b..f1f301e 100644 --- a/vsprojects/include/config.h +++ b/vsprojects/include/config.h @@ -179,27 +179,6 @@ /* Define to the sub-directory where libtool stores uninstalled libraries. */ /* #undef LT_OBJDIR */ -/* Name of package */ -#define PACKAGE "gperftools" - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "gperftools@googlegroups.com" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "gperftools" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "gperftools 2.15" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "gperftools" - -/* Define to the home page for this package. */ -#define PACKAGE_URL "" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "2.15" - /* Always the empty-string on non-windows systems. On windows, should be "__declspec(dllexport)". This way, when we compile the dll, we export our functions/classes. It's safe to define this here because config.h is only @@ -211,12 +190,6 @@ # define PERFTOOLS_DLL_DECL_FOR_UNITTESTS __declspec(dllimport) #endif -/* Mark the systems where we know it's bad if pthreads runs too - early before main (before threads are initialized, presumably). */ -#ifdef __FreeBSD__ -#define PTHREADS_CRASHES_IF_RUN_TOO_EARLY 1 -#endif - /* Define 8 bytes of allocation alignment for tcmalloc */ /* #undef TCMALLOC_ALIGN_8BYTES */