~ubuntu-branches/ubuntu/lucid/kmplayer/lucid

« back to all changes in this revision

Viewing changes to src/moz-sdk/prtypes.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-03-05 08:35:53 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20100305083553-dcjpc21lpto3oemy
Tags: 1:0.11.2-1ubuntu1
* Merge from Debian unstable, remaining change:
  - Keep kmplayer-base transitional package for 8.04 upgrades

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
#define PR_CALLBACK_DECL
113
113
#define PR_STATIC_CALLBACK(__x) static __x
114
114
 
115
 
#elif defined(WIN16)
116
 
 
117
 
#define PR_CALLBACK_DECL        __cdecl
118
 
 
119
 
#if defined(_WINDLL)
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
124
 
 
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
129
 
 
130
 
#define PR_CALLBACK             __cdecl __loadds
131
 
#define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK
132
 
 
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
138
 
 
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
143
 
 
144
 
#define PR_CALLBACK             __cdecl __loadds
145
 
#define PR_STATIC_CALLBACK(__x) __x PR_CALLBACK
146
 
#endif /* _WINDLL */
147
 
 
148
 
#elif defined(XP_MAC)
149
 
 
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
154
 
 
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)
 
116
 
 
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
 
121
 
 
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
159
126
 
160
127
#define PR_CALLBACK
161
128
#define PR_CALLBACK_DECL
162
129
#define PR_STATIC_CALLBACK(__x) static __x
163
130
 
164
 
#elif defined(XP_OS2_VACPP) 
 
131
#elif defined(SYMBIAN)
165
132
 
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
 
135
#ifdef __WINS__
 
136
#define PR_IMPORT(__type) extern __declspec(dllexport) __type
 
137
#define PR_IMPORT_DATA(__type) extern __declspec(dllexport) __type
 
138
#else
 
139
#define PR_IMPORT(__type) extern __declspec(dllimport) __type
 
140
#define PR_IMPORT_DATA(__type) extern __declspec(dllimport) __type
 
141
#endif
170
142
 
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
 
147
 
 
148
#define PR_CALLBACK
176
149
#define PR_CALLBACK_DECL
177
 
#define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK
 
150
#define PR_STATIC_CALLBACK(__x) static __x
178
151
 
179
152
#else /* Unix */
180
153
 
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. */
 
342
/*
 
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.
 
346
 */
 
347
#if PR_BYTES_PER_LONG == 8 && !defined(__APPLE__)
369
348
typedef long PRInt64;
370
349
typedef unsigned long PRUint64;
371
 
#elif defined(WIN16)
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;
442
418
**  A type for pointer difference. Variables of this type are suitable
443
419
**      for storing a pointer or pointer sutraction. 
444
420
************************************************************************/
 
421
#ifdef _WIN64
 
422
typedef unsigned __int64 PRUptrdiff;
 
423
#else
445
424
typedef unsigned long PRUptrdiff;
 
425
#endif
446
426
 
447
427
/************************************************************************
448
428
** TYPES:       PRBool
472
452
 
473
453
#ifndef __PRUNICHAR__
474
454
#define __PRUNICHAR__
475
 
#if defined(WIN32) || defined(XP_MAC)
 
455
#ifdef WIN32
476
456
typedef wchar_t PRUnichar;
477
457
#else
478
458
typedef PRUint16 PRUnichar;
490
470
** Specification, Addison-Wesley, September 1996.
491
471
** http://java.sun.com/docs/books/vmspec/index.html.)
492
472
*/
 
473
#ifdef _WIN64
 
474
typedef __int64 PRWord;
 
475
typedef unsigned __int64 PRUword;
 
476
#else
493
477
typedef long PRWord;
494
478
typedef unsigned long PRUword;
 
479
#endif
495
480
 
496
481
#if defined(NO_NSPR_10_SUPPORT)
497
482
#else
529
514
#define NSPR_END_EXTERN_C
530
515
#endif
531
516
 
532
 
#ifdef XP_MAC
533
 
#include "protypes.h"
534
 
#else
535
517
#include "obsolete/protypes.h"
536
 
#endif
537
518
 
538
519
/********* ????????????? End Fix me ?????????????????????????????? *****/
539
520
#endif /* NO_NSPR_10_SUPPORT */