]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use preprocessor 'defined' instead of relying on the preprocessor doing this automati...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Jan 2003 18:39:31 +0000 (18:39 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Jan 2003 18:39:31 +0000 (18:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@6971 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/job_identifier.cc

index fed01d299ff26d7f21f34935c7761f42d4d73740..0de23ef83aec613ec860ba70d7b6d1d9cbef3c05 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002 by the deal authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 by the deal authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -32,7 +32,7 @@ JobIdentifier::JobIdentifier()
 // It should be possible not to check DEBUG, but there is this
 // tedious -ansi, which causes problems with linux headers
   
-#if (HAVE_GETHOSTNAME && (!DEBUG))
+#if defined(HAVE_GETHOSTNAME) && !defined(DEBUG)
   char name[100];
   gethostname(name,99);
   id += std::string(name) + std::string(" ");

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.