]> www.ginac.de Git - cln.git/blobdiff - examples/pi.cc
Replace CL_REQUIRE/CL_PROVIDE(cl_GV_I) with portable code.
[cln.git] / examples / pi.cc
index 93bcbfcec77e3005556d5b2a099f4455ef16ea69..d8b310f372416be20808c73156fa62e19ef1c2fa 100644 (file)
@@ -3,6 +3,7 @@
 #include <cln/output.h>
 #include <cln/real.h>
 #include <cln/real_io.h>
+#include <cln/version.h>
 #include <cctype>
 #include <cstdlib>
 #include <cstring>
@@ -31,10 +32,12 @@ main (int argc, char * argv[])
                        return 0;
                }
                if (argc == 2 && !strcmp(argv[1],"--version")) {
-                       cout << "pi (cln) " << CL_VERSION_MAJOR << "." << CL_VERSION_MINOR << endl;
-                       cout << "Written by Bruno Haible." << endl;
+                       cout << "pi (CLN "
+                            << version_major << "." << version_minor << "." << version_patchlevel
+                            << ")" << endl;
+                       cout << "Written by Bruno Haible and Richard B. Kreckel." << endl;
                        cout << endl;
-                       cout << "Copyright (C) 1998-2007 Bruno Haible, 2000-2007 Richard B. Kreckel." << endl;
+                       cout << "Copyright (C) 1988-2008 Bruno Haible, 2000-2008 Richard B. Kreckel." << endl;
                        cout << "This is free software; see the source for copying conditions.  There is NO" << endl;
                        cout << "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." << endl;
                        cout << endl;