]> Creatis software - gdcm.git/blobdiff - src/gdcmUtil.cxx
Avoid FileHelper::CheckMandatoryElements to be confused by uncomplete headers
[gdcm.git] / src / gdcmUtil.cxx
index 576d31800a46a1a38ee358d00ab027071d7750be..23106dc78026a98d37598b72367214637b4091c4 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/05/31 16:09:29 $
-  Version:   $Revision: 1.184 $
+  Date:      $Date: 2007/05/23 14:18:11 $
+  Version:   $Revision: 1.187 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -92,7 +92,7 @@
    #include <thread.h>
 #endif
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE
 {
 //-------------------------------------------------------------------------
 const std::string Util::GDCM_UID = "1.2.826.0.1.3680043.2.1143";
@@ -855,8 +855,14 @@ int GetMacAddrSys ( unsigned char *addr )
    }
    close(sd);
 #endif
-   // Not implemented platforms (or no cable !)
-   perror("in Get MAC Adress (internal) : There was a configuration problem (or no cable !) on your plateform");
+   // Not implemented platforms (or no Ethernet cable !)
+   
+   /// \todo FIXME I wish we don't pollute command line applications when no Ethernet cable !
+   //perror("Probabely your computer is not connected on a network, therefore its MAC adress cannot be found (or there is a configuration problem on your platform)");
+
+   // But the following -> error: invalid use of 'this' in non-member function
+   //gdcmWarningMacro( "Probabely your computer is not connected on a network, therefore its MAC adress cannot be found (or there is a configuration problem on your platform)");
+
    memset(addr,0,6);
    return -1;
 #endif //__sun
@@ -1241,7 +1247,7 @@ void Util::hfpswap(double *a, double *b)
   ghost@aladdin.com
  */
 
-/* $Id: gdcmUtil.cxx,v 1.184 2006/05/31 16:09:29 jpr Exp $ */
+/* $Id: gdcmUtil.cxx,v 1.187 2007/05/23 14:18:11 jpr Exp $ */
 
 /*
   Independent implementation of MD5 (RFC 1321).