--- embedaddon/smartmontools/int64.h 2012/02/21 16:32:16 1.1.1.1 +++ embedaddon/smartmontools/int64.h 2012/10/09 09:36:45 1.1.1.2 @@ -20,7 +20,7 @@ #ifndef INT64_H_ #define INT64_H_ -#define INT64_H_CVSID "$Id: int64.h,v 1.1.1.1 2012/02/21 16:32:16 misho Exp $" +#define INT64_H_CVSID "$Id: int64.h,v 1.1.1.2 2012/10/09 09:36:45 misho Exp $" // 64 bit integer typedefs and format strings @@ -40,7 +40,7 @@ #include #else #if defined(_WIN32) && defined(_MSC_VER) -// for MSVC 6.0 +// for MSVC <= 9 (MSVC10 and MinGW provide ) typedef __int64 int64_t; typedef unsigned __int64 uint64_t; #else @@ -59,12 +59,12 @@ typedef unsigned long long uint64_t; #endif // HAVE_STDINT_H #endif // HAVE_INTTYPES_H -#ifdef _WIN32 -// for MSVCRT.DLL (used by both MSVC 6.0 and MinGW) +#if defined(_WIN32) && !defined(PRId64) +// for MSVC (MinGW provides ) #define PRId64 "I64d" #define PRIu64 "I64u" #define PRIx64 "I64x" -#endif // _WIN32 +#endif // _WIN32 && !PRId64 // If macros not defined in inttypes.h, fix here. Default is GCC // style