From: malaterre Date: Mon, 10 Jan 2005 22:54:34 +0000 (+0000) Subject: BUG: Cannot include file within a namespace otherwise name gets mangled X-Git-Tag: Version1.0.bp~402 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8dfa11947f568ef86508fb5c63c81ee1172fdf49;p=gdcm.git BUG: Cannot include file within a namespace otherwise name gets mangled --- diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index fb7d6538..98e4e107 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/01/10 17:09:49 $ - Version: $Revision: 1.87 $ + Date: $Date: 2005/01/10 22:54:34 $ + Version: $Revision: 1.88 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -38,6 +38,51 @@ #endif #endif +// For GetMACAddress +#include +#include +#include + +#ifdef _WIN32 +#include +#include +#else +#include //for bzero on unix +#endif + +#ifdef __linux__ +#include +#include +#include +#include +#include +#endif + +#ifdef __FreeBSD__ +#include +#include +#include +#include +#endif + +#ifdef __HP_aCC +#include +#endif + +#ifdef _AIX +#include +#include +#endif + +#ifdef __APPLE__ +#include +#include +#include +#include +#include +#endif //__APPLE__ +// End For GetMACAddress + namespace gdcm { /** @@ -313,13 +358,8 @@ bool Util::IsCurrentProcessorBigEndian() } -#include -#include -#include #ifdef _WIN32 -#include -#include typedef BOOL(WINAPI * pSnmpExtensionInit) ( IN DWORD dwTimeZeroReference, OUT HANDLE * hPollForTrapEvent, @@ -340,44 +380,10 @@ typedef BOOL(WINAPI * pSnmpExtensionQuery) ( typedef BOOL(WINAPI * pSnmpExtensionInitEx) ( OUT AsnObjectIdentifier * supportedView); -#else -#include //for bzero on unix #endif //_WIN32 -#ifdef __linux__ -#include -#include -#include -#include -#include -#endif - -#ifdef __FreeBSD__ -#include -#include -#include -#include -#endif - -#ifdef __HP_aCC -#include -#endif - -#ifdef _AIX -#include -#include -#endif #ifdef __APPLE__ -#include -#include -#include -#include -#include - -//static kern_return_t FindEthernetInterfaces(io_iterator_t *matchingServices); -//static kern_return_t GetMACAddress(io_iterator_t intfIterator, UInt8 *MACAddress); - // Returns an iterator containing the primary (built-in) Ethernet interface. The caller is responsible for // releasing the iterator after the caller is done with it. static kern_return_t FindEthernetInterfaces(io_iterator_t *matchingServices)