/*============================================================================= * drt/sys/k_msc32.h * Porting definitions for: * Microsoft Visual C++ 5.0+, on * Windows 95 or Windows NT 4.0+ (Win32). * * See also * kport.h * kdefs.h * * History * 1.01, 1998-04-23, David R Tribble. * First cut. * * 1.02, 1998-04-24, David R Tribble. * Renamed from "sc_msc50.h" to "j_msc50.h". * * 1.03, 1998-05-30, David R Tribble. * Changed filename prefix from "j" to "k". * * 1.04, 1999-02-26, David R Tribble. * Moved to drt/sys/. * * 1.05, 1999-03-19, David R Tribble. * Converted from C++ to C. * * 1.06, 1999-07-31, David R Tribble. * Renamed this file to "k_msc.h". * * 1.07, 1999-08-19, David R Tribble. * Renamed this file to "k_msc32.h", for Win32. * * Copyright ©1998-1999, by David R. Tribble, all rights reserved. * See "drt/sys/copyr.txt" for more information. *----------------------------------------------------------------------------*/ #ifndef drt_sys_kmsc32_h #define drt_sys_kmsc32_h 107 /* Identification */ #ifndef NO_H_IDENT static const char drt_sys_kmsc32_h_id[] = "@(#)drt/sys/k_msc32.h 1.07"; #endif /* Verify include order */ #ifndef drt_sys_kdefs_h #error Use "sys/kdefs.h" instead of this header #endif /* Porting control macros */ #undef DRT_OS_WIN32 #define DRT_OS_WIN32 400 #define DRT_OS_WIN32_4_0 1 #undef DRT_C_MSC #define DRT_C_MSC 500 #define DRT_C_MSC_5_0 1 #define DRT_HAS_BOOL 0 /* Has 'bool' type */ #define DRT_HAS_LLONG 1 /* Has a 'long long' type */ #define DRT_BITS_SHORT 16 /* Bits in a 'short' */ #define DRT_BITS_INT 32 /* Bits in an 'int' */ #define DRT_BITS_LONG 32 /* Bits in a 'long' */ #define DRT_BITS_LLONG 64 /* Bits in a 'long long' */ #define DRT_BYTE_HL 0 /* Big-endian byte order w/i words */ #define DRT_WORD_HL 0 /* Big-endian word order w/i longs */ #define DRT_LONG_HL 0 /* Big-endian long order w/i llongs */ /* Primitive types */ #define drt_int64_t signed __int64 // 64-bit signed integer #define drt_uint64_t unsigned __int64 // 64-bit unsigned integer /* Standard constants */ #ifndef LLONG_MIN #define LLONG_MIN _I64_MIN #endif #ifndef LLONG_MAX #define LLONG_MAX _I64_MAX #endif #ifndef ULLONG_MAX #define ULLONG_MAX _UI64_MAX #endif /* Other constants */ #ifndef DRT_LLONG_FMT #define DRT_LLONG_FMT "I64" #endif #endif /* drt_sys_kmsc32_h */ /* End k_msc32.h */