diff options
author | lloyd <[email protected]> | 2010-11-02 18:58:11 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-11-02 18:58:11 +0000 |
commit | 10973bda6f6c10bfbff1920bced7932e265b5875 (patch) | |
tree | cc6afc30e6059e40bc590c6ac98129c0a5f7620e /src/build-data/buildh.in | |
parent | 6f07da35714ed19149be572952eb5bc5584f7fc4 (diff) |
Make it possible to disable deprecation warnings by defining
the macro BOTAN_NO_DEPRECATED_WARNINGS
Remove the full modules list; not that useful/informative. Put the
remaining build information at the top of the file.
Diffstat (limited to 'src/build-data/buildh.in')
-rw-r--r-- | src/build-data/buildh.in | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in index 53c66e133..862a3a823 100644 --- a/src/build-data/buildh.in +++ b/src/build-data/buildh.in @@ -2,7 +2,15 @@ #ifndef BOTAN_BUILD_CONFIG_H__ #define BOTAN_BUILD_CONFIG_H__ -/* This file was automatically generated %{timestamp} UTC */ +/* +* This file was automatically generated %{timestamp} UTC by +* %{user}@%{hostname} running '%{command_line}' +* +* Target +* - Compiler: %{cc} %{lib_opt} %{mach_opt} +* - Arch: %{submodel}/%{arch} +* - OS: %{os} +*/ #define BOTAN_VERSION_MAJOR %{version_major} #define BOTAN_VERSION_MINOR %{version_minor} @@ -66,32 +74,28 @@ /* * Compile-time deprecatation warnings */ -#if defined(__GNUG__) - #define BOTAN_DEPRECATED(msg) __attribute__ ((deprecated, warning(why))) -#elif defined(_MSC_VER) - #define BOTAN_DEPRECATED(msg) __declspec(deprecated(why)) -#else +#if !defined(BOTAN_NO_DEPRECATED_WARNINGS) + + #if defined(__GNUG__) + #define BOTAN_DEPRECATED(msg) __attribute__ ((deprecated, warning(why))) + #elif defined(_MSC_VER) + #define BOTAN_DEPRECATED(msg) __declspec(deprecated(why)) + #endif + +#endif + +#if !defined(BOTAN_DEPRECATED) #define BOTAN_DEPRECATED(msg) #endif -/* Module definitions */ +/* +* Module availability definitions +*/ %{module_defines} -/* Local configuration options */ -%{local_config} - /* -%{user}@%{hostname} ran '%{command_line}' - -Target -------- -Compiler: %{cc} %{lib_opt} %{mach_opt} -Arch: %{submodel}/%{arch} -OS: %{os} - -Modules -------- -%{mod_list} +* Local configuration options (if any) follow */ +%{local_config} #endif |