Lines 63-68
Link Here
|
63 |
#ifndef _SOLAR_H |
63 |
#ifndef _SOLAR_H |
64 |
#define _SOLAR_H |
64 |
#define _SOLAR_H |
65 |
|
65 |
|
|
|
66 |
#ifndef _SAL_TYPES_H_ |
67 |
#include <sal/types.h> |
68 |
#endif |
69 |
|
66 |
/*** common solar defines ***********************************/ |
70 |
/*** common solar defines ***********************************/ |
67 |
|
71 |
|
68 |
#ifndef TRUE |
72 |
#ifndef TRUE |
Lines 81-143
Link Here
|
81 |
#define _SOLAR__PRIVATE 1 |
85 |
#define _SOLAR__PRIVATE 1 |
82 |
#define __REFERENCED 0 |
86 |
#define __REFERENCED 0 |
83 |
|
87 |
|
84 |
/*** common solar types ******************************************/ |
88 |
/*** common solar types ********************************************/ |
85 |
|
89 |
/* NOTE: these types are deprecated, or soon will be. They should */ |
86 |
typedef unsigned char BOOL; |
90 |
/* not be used in new code, and should be replaced with their */ |
87 |
typedef unsigned char BYTE; |
91 |
/* corresponding types from sal/types.h in old code when possible. */ |
88 |
typedef unsigned short USHORT; |
92 |
|
89 |
typedef unsigned long ULONG; |
93 |
typedef sal_Bool BOOL; /* typedef unsigned char BOOL; */ |
90 |
typedef int FASTBOOL; |
94 |
typedef sal_uInt8 BYTE; /* typedef unsigned char BYTE; */ |
|
|
95 |
typedef sal_uInt16 USHORT; /* typedef unsigned short USHORT; */ |
96 |
typedef sal_uInt32 ULONG; /* typedef unsigned long ULONG; */ |
97 |
typedef int FASTBOOL; |
91 |
|
98 |
|
92 |
#ifndef _SOLAR_NOUINT |
99 |
#ifndef _SOLAR_NOUINT |
|
|
100 |
typedef sal_Int16 INT16; /* typedef short INT16; */ |
101 |
typedef sal_uInt16 UINT16; /* typedef unsigned short UINT16; *; |
102 |
typedef sal_Char INT8; /* typedef char INT8; */ |
103 |
typedef sal_uInt8 UINT8; /* typedef unsigned char UINT8; */ |
104 |
|
93 |
/* types with exact defined size (not just the minimum size) */ |
105 |
/* types with exact defined size (not just the minimum size) */ |
94 |
#if defined ALPHA && !defined WNT |
106 |
#if defined ALPHA && !defined WNT |
95 |
typedef long INT64; |
107 |
typedef sal_Int64 INT64; /* typedef long INT64; */ |
96 |
typedef unsigned long UINT64; |
108 |
typedef sal_uInt64 UINT64; /* typedef unsigned long UINT64; */ |
97 |
typedef int INT32; |
109 |
typedef sal_Int32 INT32; /* typedef int INT32; */ |
98 |
typedef unsigned int UINT32; |
110 |
typedef sal_uInt32 UINT32; /* typedef unsigned int UINT32; */ |
99 |
typedef short INT16; |
|
|
100 |
typedef unsigned short UINT16; |
101 |
typedef char INT8; |
102 |
typedef unsigned char UINT8; |
103 |
#else |
111 |
#else |
104 |
#if !defined(_MSC_VER) || defined(_MSC_VER) && (_MSC_VER < 1200) || (_MSC_VER >= 1200 ) && !defined(VCL_NEED_BASETSD ) |
112 |
#if !defined(_MSC_VER) || defined(_MSC_VER) && (_MSC_VER < 1200) || (_MSC_VER >= 1200 ) && !defined(VCL_NEED_BASETSD ) |
105 |
typedef void INT64; |
113 |
typedef void INT64; |
106 |
typedef void UINT64; |
114 |
typedef void UINT64; |
107 |
typedef long INT32; |
115 |
typedef sal_Int32 INT32; /* typedef long INT32; */ |
108 |
typedef unsigned long UINT32; |
116 |
typedef sal_uInt32 UINT32; /* typedef unsigned long UINT32; */ |
109 |
#endif |
117 |
#endif |
110 |
typedef short INT16; |
|
|
111 |
typedef unsigned short UINT16; |
112 |
typedef signed char INT8; |
113 |
typedef unsigned char UINT8; |
114 |
#endif |
118 |
#endif |
115 |
#endif /* _SOLAR_NOUINT */ |
119 |
#endif /* _SOLAR_NOUINT */ |
116 |
|
|
|
117 |
|
118 |
/*** description of platform and compiler properties *******************/ |
119 |
|
120 |
#ifndef _SOLAR_NODESCRIPTION |
121 |
#if defined UNX |
122 |
#include <svconf.h> |
123 |
#else |
124 |
#if defined WNT /* auf PC's */ |
125 |
#define __LITTLEENDIAN |
126 |
#define __ALIGNMENT2 1 |
127 |
#define __ALIGNMENT4 1 |
128 |
#define __ALIGNMENT8 1 |
129 |
#define __STACKALIGNMENT 4 |
130 |
#define __STACKDIRECTION -1 |
131 |
#define __SIZEOFCHAR 1 |
132 |
#define __SIZEOFSHORT 2 |
133 |
#define __SIZEOFINT 4 |
134 |
#define __SIZEOFLONG 4 |
135 |
#define __SIZEOFPOINTER 4 |
136 |
#define __SIZEOFDOUBLE 8 |
137 |
#define __IEEEDOUBLE |
138 |
#endif |
139 |
#endif |
140 |
#endif /* _SOLAR_NODESCRIPTION */ |
141 |
|
120 |
|
142 |
|
121 |
|
143 |
/*** misc. macros to leverage platform and compiler differences ********/ |
122 |
/*** misc. macros to leverage platform and compiler differences ********/ |