]> Creatis software - gdcm.git/commitdiff
BUG: Fix compilation on mingw
authormalaterre <malaterre>
Tue, 18 Jan 2005 15:52:22 +0000 (15:52 +0000)
committermalaterre <malaterre>
Tue, 18 Jan 2005 15:52:22 +0000 (15:52 +0000)
src/gdcmDocument.cxx

index 73486bc72fbed3adddd83fb5b0690717769e7856..9ddc85488e7267a23f1a820b337479202ec1b134 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/18 08:01:41 $
-  Version:   $Revision: 1.195 $
+  Date:      $Date: 2005/01/18 15:52:22 $
+  Version:   $Revision: 1.196 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #include <iomanip>
 
 // For nthos:
-#if defined(_MSC_VER) || defined(__BORLANDC__)
+#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__) 
    #include <winsock.h>
-#else
+#endif
+
+#ifdef CMAKE_HAVE_NETINET_IN_H
    #include <netinet/in.h>
 #endif