]> Creatis software - gdcm.git/commitdiff
ENH: Adding support for BCB6, big thanks to Luca Picello for patch
authormalaterre <malaterre>
Sat, 2 Jul 2005 15:54:17 +0000 (15:54 +0000)
committermalaterre <malaterre>
Sat, 2 Jul 2005 15:54:17 +0000 (15:54 +0000)
CMakeLists.txt
src/gdcmCommon.h

index 7fb8b8d92df901cb762b45af477f7362b53f99c7..ec8a27d7256f13978d8391f3d46e385434fe1bc6 100644 (file)
@@ -124,8 +124,8 @@ INCLUDE (${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
 TEST_BIG_ENDIAN(GDCM_WORDS_BIGENDIAN)
 
 INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
+CHECK_INCLUDE_FILE("stdint.h"       CMAKE_HAVE_STDINT_H)
 IF(UNIX) #Avoid polluting Win32 cmakecache
-  CHECK_INCLUDE_FILE("stdint.h"       CMAKE_HAVE_STDINT_H)
   CHECK_INCLUDE_FILE("inttypes.h"     CMAKE_HAVE_INTTYPES_H)
 ENDIF(UNIX)
 
index 4a2e2c0e403e5dfdc13b395583a6e5903c086168..48098b9c2478500662fc2160eb075c683d4afbfa 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmCommon.h,v $
   Language:  C++
-  Date:      $Date: 2005/06/25 13:57:29 $
-  Version:   $Revision: 1.66 $
+  Date:      $Date: 2005/07/02 15:54:18 $
+  Version:   $Revision: 1.67 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -57,7 +57,8 @@
 #endif
 
 // Broken plateform do not respect C99 and do not provide those typedef
-#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__)
+// Special case for recent borland compiler, comes with stdint.h
+#if defined(_MSC_VER) || __BORLANDC__ < 0x0560  || defined(__MINGW32__)
 typedef  signed char         int8_t;
 typedef  signed short        int16_t;
 typedef  signed int          int32_t;