112
112
#define PR_CALLBACK_DECL
113
113
#define PR_STATIC_CALLBACK(__x) static __x
117
#define PR_CALLBACK_DECL __cdecl
120
#define PR_EXPORT(__type) extern __type _cdecl _export _loadds
121
#define PR_IMPORT(__type) extern __type _cdecl _export _loadds
122
#define PR_EXPORT_DATA(__type) extern __type _export
123
#define PR_IMPORT_DATA(__type) extern __type _export
125
#define PR_EXTERN(__type) extern __type _cdecl _export _loadds
126
#define PR_IMPLEMENT(__type) __type _cdecl _export _loadds
127
#define PR_EXTERN_DATA(__type) extern __type _export
128
#define PR_IMPLEMENT_DATA(__type) __type _export
130
#define PR_CALLBACK __cdecl __loadds
131
#define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK
133
#else /* this must be .EXE */
134
#define PR_EXPORT(__type) extern __type _cdecl _export
135
#define PR_IMPORT(__type) extern __type _cdecl _export
136
#define PR_EXPORT_DATA(__type) extern __type _export
137
#define PR_IMPORT_DATA(__type) extern __type _export
139
#define PR_EXTERN(__type) extern __type _cdecl _export
140
#define PR_IMPLEMENT(__type) __type _cdecl _export
141
#define PR_EXTERN_DATA(__type) extern __type _export
142
#define PR_IMPLEMENT_DATA(__type) __type _export
144
#define PR_CALLBACK __cdecl __loadds
145
#define PR_STATIC_CALLBACK(__x) __x PR_CALLBACK
148
#elif defined(XP_MAC)
150
#define PR_EXPORT(__type) extern __declspec(export) __type
151
#define PR_EXPORT_DATA(__type) extern __declspec(export) __type
152
#define PR_IMPORT(__type) extern __declspec(export) __type
153
#define PR_IMPORT_DATA(__type) extern __declspec(export) __type
155
#define PR_EXTERN(__type) extern __declspec(export) __type
156
#define PR_IMPLEMENT(__type) __declspec(export) __type
157
#define PR_EXTERN_DATA(__type) extern __declspec(export) __type
158
#define PR_IMPLEMENT_DATA(__type) __declspec(export) __type
115
#elif defined(XP_OS2) && defined(__declspec)
117
#define PR_EXPORT(__type) extern __declspec(dllexport) __type
118
#define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type
119
#define PR_IMPORT(__type) extern __declspec(dllimport) __type
120
#define PR_IMPORT_DATA(__type) extern __declspec(dllimport) __type
122
#define PR_EXTERN(__type) extern __declspec(dllexport) __type
123
#define PR_IMPLEMENT(__type) __declspec(dllexport) __type
124
#define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type
125
#define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type
160
127
#define PR_CALLBACK
161
128
#define PR_CALLBACK_DECL
162
129
#define PR_STATIC_CALLBACK(__x) static __x
164
#elif defined(XP_OS2_VACPP)
131
#elif defined(SYMBIAN)
166
#define PR_EXPORT(__type) extern __type
167
#define PR_EXPORT_DATA(__type) extern __type
168
#define PR_IMPORT(__type) extern __type
169
#define PR_IMPORT_DATA(__type) extern __type
133
#define PR_EXPORT(__type) extern __declspec(dllexport) __type
134
#define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type
136
#define PR_IMPORT(__type) extern __declspec(dllexport) __type
137
#define PR_IMPORT_DATA(__type) extern __declspec(dllexport) __type
139
#define PR_IMPORT(__type) extern __declspec(dllimport) __type
140
#define PR_IMPORT_DATA(__type) extern __declspec(dllimport) __type
171
143
#define PR_EXTERN(__type) extern __type
172
144
#define PR_IMPLEMENT(__type) __type
173
145
#define PR_EXTERN_DATA(__type) extern __type
174
146
#define PR_IMPLEMENT_DATA(__type) __type
175
#define PR_CALLBACK _Optlink
176
149
#define PR_CALLBACK_DECL
177
#define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK
150
#define PR_STATIC_CALLBACK(__x) static __x
365
338
** the LL_ macros (see prlong.h).
366
339
************************************************************************/
367
340
#ifdef HAVE_LONG_LONG
368
#if PR_BYTES_PER_LONG == 8
341
/* Keep this in sync with prlong.h. */
343
* On 64-bit Mac OS X, uint64 needs to be defined as unsigned long long to
344
* match uint64_t, otherwise our uint64 typedef conflicts with the uint64
345
* typedef in cssmconfig.h, which CoreServices.h includes indirectly.
347
#if PR_BYTES_PER_LONG == 8 && !defined(__APPLE__)
369
348
typedef long PRInt64;
370
349
typedef unsigned long PRUint64;
372
typedef __int64 PRInt64;
373
typedef unsigned __int64 PRUint64;
374
350
#elif defined(WIN32) && !defined(__GNUC__)
375
351
typedef __int64 PRInt64;
376
352
typedef unsigned __int64 PRUint64;