From: malaterre Date: Sun, 23 Jan 2005 01:00:17 +0000 (+0000) Subject: BUG: ostream opeartor << is only defined for __int?? but not unsigned __int??. Fallba... X-Git-Tag: Version1.0.bp~209 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=08c410684fe0aaa2bb282c6bf356a85a168ac31c;p=gdcm.git BUG: ostream opeartor << is only defined for __int?? but not unsigned __int??. Fallback to previous implementation. According to implementation char/short/int have fixed lenght in Microsoft world. For more info look for /error C2679 __int64/ --- diff --git a/src/gdcmCommon.h b/src/gdcmCommon.h index 2313fe01..ed76f8af 100644 --- a/src/gdcmCommon.h +++ b/src/gdcmCommon.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmCommon.h,v $ Language: C++ - Date: $Date: 2005/01/22 22:21:19 $ - Version: $Revision: 1.56 $ + Date: $Date: 2005/01/23 01:00:17 $ + Version: $Revision: 1.57 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -56,13 +56,13 @@ // Broken plateform do not respect C99 and do not provide those typedef #if defined(_MSC_VER) || defined(__BORLANDC__) -typedef signed __int8 int8_t; -typedef signed __int16 int16_t; -typedef signed __int32 int32_t; +typedef signed char int8_t; +typedef signed short int16_t; +typedef signed int int32_t; typedef signed __int64 int64_t; -typedef unsigned __int8 uint8_t; -typedef unsigned __int16 uint16_t; -typedef unsigned __int32 uint32_t; +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; typedef unsigned __int64 uint64_t; #define UINT32_MAX (4294967295U) #endif