From: wolf Date: Mon, 27 Jan 2003 18:39:31 +0000 (+0000) Subject: Use preprocessor 'defined' instead of relying on the preprocessor doing this automati... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e13d9cf6603e7c7c8ba9dffa5f75f7854425bf76;p=dealii-svn.git Use preprocessor 'defined' instead of relying on the preprocessor doing this automatically. git-svn-id: https://svn.dealii.org/trunk@6971 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/job_identifier.cc b/deal.II/base/source/job_identifier.cc index fed01d299f..0de23ef83a 100644 --- a/deal.II/base/source/job_identifier.cc +++ b/deal.II/base/source/job_identifier.cc @@ -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(" ");