Last change
on this file since 396 was 220, checked in by ansari, 26 years ago |
Creation module DPC/NTools Reza 09/04/99
|
File size:
656 bytes
|
Rev | Line | |
---|
[220] | 1 | #include "pversion.h"
|
---|
| 2 | #include "peidainit.h"
|
---|
| 3 | #include <stdio.h>
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | void PrintPeidaVersion(void)
|
---|
| 7 | {
|
---|
| 8 | char* compiler;
|
---|
| 9 | #ifdef __GNUG__
|
---|
| 10 | compiler = "gcc " __VERSION__;
|
---|
| 11 | #endif
|
---|
| 12 | #ifdef __xlC
|
---|
| 13 | compiler = "xlC " ;
|
---|
| 14 | #endif
|
---|
| 15 | #ifdef __DECCXX
|
---|
| 16 | compiler = "cxx " ;
|
---|
| 17 | #endif
|
---|
| 18 | #ifdef __aCC__
|
---|
| 19 | compiler = const_cast<char *>("HP-aCC ") ;
|
---|
| 20 | #endif
|
---|
| 21 | #ifdef __KCC__
|
---|
| 22 | compiler = const_cast<char *>("KCC ") ;
|
---|
| 23 | #endif
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | fprintf(stderr,"PEIDA_PLANCK Version %4.1f Revision %d (%s) -- %s %s %s\n",
|
---|
| 27 | PEIDA_VERSION, PEIDA_REVISION, PEIDA_TAG,
|
---|
| 28 | __DATE__, __TIME__, compiler);
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | double PeidaVersion(void)
|
---|
| 32 | {
|
---|
| 33 | return PEIDA_VERSION + (PEIDA_REVISION/1000.);
|
---|
| 34 | }
|
---|
| 35 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.