X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fportability%2Fbuild.hpp;h=071bc6544f7b9a2fe331ad1dc8ce79685f5eed14;hp=a648beb2129fa6ad0f9f55bcd052220bb7a4f9d2;hb=4f6e4488a55f7e3ba3f7485d78177f793c0eab9a;hpb=5846afb00833cc72fe72422ca896d2387c712cb4 diff --git a/src/stlplus/portability/build.hpp b/src/stlplus/portability/build.hpp index a648beb..071bc65 100644 --- a/src/stlplus/portability/build.hpp +++ b/src/stlplus/portability/build.hpp @@ -1,34 +1,51 @@ -#ifndef STLPLUS_BUILD -#define STLPLUS_BUILD -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -// Provides a printable representation of the build characteristics in the form: - -// version, platform, compiler, variant - -// Where -// version is the version of STLplus -// platform is the target operating system -// compiler is the compilation system and version that the function was compiled with -// variant is the kind of build - debug or release - -// Example: -// STLplus version 3.0, Generic Unix, gcc v3.4, debug - -//////////////////////////////////////////////////////////////////////////////// -#include "portability_fixes.hpp" -#include - -namespace stlplus -{ - - std::string build(void); - -} -//////////////////////////////////////////////////////////////////////////////// -#endif +#ifndef STLPLUS_BUILD +#define STLPLUS_BUILD +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004 onwards +// License: BSD License, see ../docs/license.html + +// Provides a printable representation of the build characteristics in the form: + +// version, platform, compiler, variant + +// Where +// version is the version of STLplus +// platform is the target operating system +// compiler is the compilation system and version that the function was compiled with +// variant is the kind of build - debug or release + +// Example: +// STLplus version 3.0, Generic Unix, gcc v3.4, debug + +//////////////////////////////////////////////////////////////////////////////// +#include "portability_fixes.hpp" +#include + +namespace stlplus +{ + + // STLplus version in the form "STLplus version 3.0" - see version.hpp for a way of getting just the version number + std::string stlplus_version(void); + + // platform is the target operating system in the form "Windows" or "Generic Unix" + std::string platform(void); + + // compiler_name is the short name of the compiler, e.g. "gcc" or "MSVC" + std::string compiler_name(void); + // compiler_version is the version string of the compiler e.g. "3.4" for gcc or "15.00" for MSVC + std::string compiler_version(void); + // compiler is the compilation system and version above combined into a human- readable form e.g. "gcc v3.4" + std::string compiler(void); + + // variant is the kind of build - "debug" or "release" + std::string variant(void); + + // build is all of the above combined into a human-readable string + std::string build(void); + +} +//////////////////////////////////////////////////////////////////////////////// +#endif