[dss-commits] r8762 - dss/trunk

dss-commits at forum.digitalstrom.org dss-commits at forum.digitalstrom.org
Tue Sep 15 09:49:05 CEST 2009


Author: pstaehlin
Date: 2009-09-15 09:49:05 +0200 (Tue, 15 Sep 2009)
New Revision: 8762

Modified:
   dss/trunk/main.cpp
Log:
Don't access defines that are not defined


Modified: dss/trunk/main.cpp
===================================================================
--- dss/trunk/main.cpp	2009-09-14 17:59:43 UTC (rev 8761)
+++ dss/trunk/main.cpp	2009-09-15 07:49:05 UTC (rev 8762)
@@ -63,6 +63,7 @@
 } // parse_prop
 
 void printVersion() {
+#ifdef HAVE_BUILD_INFO_H
   cout << "DSS v" << DSS_VERSION << " built on " << DSS_BUILD_DATE << endl;
 #ifndef RELEASE_BUILD
   cout << "  RCS revision: " << DSS_RCS_REVISION << endl;
@@ -70,6 +71,9 @@
   cout << "  build user:   " << DSS_BUILD_USER   << endl;
   cout << "  build host:   " << DSS_BUILD_HOST   << endl;
 #endif
+#else
+  cout << "No build information included" << endl;
+#endif
 }
 
 int main (int argc, char* argv[]) {



More information about the dss-commits mailing list