15 #if !defined (NO_BENTLEY_PUBLIC)
23 #define CHAR_WORD(c1,c2,c3,c4) (((((((c1)<<8)|c2)<<8)|c3)<<8)|c4)
25 #define CONST_CAST_(t,v) const_cast<t> (v)
27 #if !defined (NULLFUNC)
31 #define bsiInterface struct __declspec(novtable)
33 #define PAD_BITS_IF_NEEDED(size)
73 #if defined (DATA_ALIGNMENT_FORCED)
78 # define NATIVE_DIALOGS
79 # define NATIVE_BACKGROUND
82 #if defined (DATA_ALIGNMENT_FORCED)
83 # define CHAR_ALIGN 1L
84 # define SHORT_ALIGN 2L
85 # define LONG_ALIGN 4L
86 # define LONG64_ALIGN 8L
87 # define FLOAT_ALIGN 4L
88 # define DOUBLE_ALIGN 8L
91 # define CHAR_ALIGN 1L
92 # define SHORT_ALIGN 2L
93 # define LONG_ALIGN 4L
94 # define LONG64_ALIGN 8L
95 # define FLOAT_ALIGN 4L
96 # define DOUBLE_ALIGN 8L
100 # define PTR_ALIGN 4L
103 # error Data Alignment must be defined in basedefs.h
106 #if defined (winNT) && defined (_X86_)
107 # define MIN_MALLOC_ALIGN LONG_ALIGN
109 # define MIN_MALLOC_ALIGN DOUBLE_ALIGN
112 #if defined (winNT) && !defined (win32)
118 # define DISK_SUPPORT
122 # if ! defined (nativeCode)
133 #if defined (winNT) && !defined (mdl)
134 # define DLLEXPORT __declspec( dllexport )
135 # define DLLIMPORT __declspec( dllimport )