summaryrefslogtreecommitdiff
path: root/stlport/STLport-4.5-macxp-panther.patch
blob: 96dd71694e53227426026f3bf303be2bedb6872f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
*** misc/STLport-4.5/src/dll_main.cpp	Fri Aug 24 21:14:19 2001
--- misc/build/STLport-4.5/src/dll_main.cpp	Fri Oct 31 12:11:56 2003
***************
*** 147,152 ****
--- 147,156 ----
  template struct _STLP_CLASS_DECLSPEC __stl_debug_engine<bool>;
  # endif
  
+ #ifdef __APPLE__
+ template class _STLP_CLASS_DECLSPEC _Node_Alloc_Lock<false,0>;
+ template class _STLP_CLASS_DECLSPEC _Node_Alloc_Lock<true,0>;
+ #endif
  template class _STLP_CLASS_DECLSPEC __node_alloc<false,0>;
  template class _STLP_CLASS_DECLSPEC __node_alloc<true,0>;
  template class _STLP_CLASS_DECLSPEC __debug_alloc< __node_alloc<true,0> >;
*** misc/STLport-4.5/src/gcc-3.0-freebsd.mak	Mon Nov 10 18:30:01 2003
--- misc/build/STLport-4.5/src/gcc-3.0-freebsd.mak	Fri Oct 31 12:11:56 2003
***************
*** 1 ****
! dummy
--- 1,59 ----
! #
! # Note : this makefile is for gcc-3 !
! #
! 
! #
! # compiler
! #
! CC+= ${PTHREAD_CFLAGS} -D_REENTRANT
! CXX+= ${PTHREAD_CFLAGS} -D_REENTRANT -fexceptions
! 
! #
! # Basename for libraries
! #
! LIB_BASENAME = libstlport_gcc
! 
! #
! # guts for common stuff
! #
! #
! LINK=ar cr
! DYN_LINK=${CXX} ${PTHREAD_LIBS} --fexceptions -shared -o
! 
! OBJEXT=o
! DYNEXT=so
! STEXT=a
! RM=rm -rf
! PATH_SEP=/
! MKDIR=mkdir -p
! COMP=GCC-FREEBSD
! INSTALL_STEP = install_unix 
! 
! all:  all_dynamic all_static symbolic_links 
! 
! include common_macros.mak
! 
! WARNING_FLAGS= -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftemplate-depth-32
! 
! CXXFLAGS_COMMON = -I${STLPORT_DIR} -DGXX_INCLUDE_PATH=${GXX_INCLUDE_PATH} ${WARNING_FLAGS}
! 
! CXXFLAGS_RELEASE_static = $(CXXFLAGS_COMMON) ${CXXFLAGS}
! CXXFLAGS_RELEASE_dynamic = $(CXXFLAGS_COMMON) ${CXXFLAGS} -fPIC
! 
! CXXFLAGS_DEBUG_static = $(CXXFLAGS_COMMON) -g
! CXXFLAGS_DEBUG_dynamic = $(CXXFLAGS_COMMON) -g -fPIC
! 
! CXXFLAGS_STLDEBUG_static = $(CXXFLAGS_DEBUG_static) -D_STLP_DEBUG
! CXXFLAGS_STLDEBUG_dynamic = $(CXXFLAGS_DEBUG_dynamic) -D_STLP_DEBUG
! 
! include common_percent_rules.mak
! include common_rules.mak
! 
! 
! #install: all
! #	cp -p $(LIB_TARGET) ${D_LIB_TARGET} ../lib
! 
! #%.s: %.cpp
! #	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
! 
! 
*** misc/STLport-4.5/src/gcc-3.0-macosx.mak	Mon Nov 10 18:30:01 2003
--- misc/build/STLport-4.5/src/gcc-3.0-macosx.mak	Fri Oct 31 12:11:56 2003
***************
*** 1 ****
! dummy
--- 1,59 ----
! #
! # Note : this makefile is for gcc-3, Mac OS X only !
! #
! 
! #
! # compiler
! # take these from the OOo build environment
! CC*= gcc 
! CXX*= g++
! 
! #
! # Basename for libraries
! #
! LIB_BASENAME = libstlport_gcc
! 
! #
! # guts for common stuff
! #
! #
! LINK=libtool -static -o
! DYN_LINK=g++ -dynamiclib -single_module -install_name @executable_path/libstlport_gcc.dylib -o
! 
! OBJEXT=o
! DYNEXT=dylib
! STEXT=a
! RM=rm -rf
! PATH_SEP=/
! MKDIR=mkdir -p
! COMP=GCC$(ARCH)
! INSTALL_STEP = install_unix 
! 
! all:  all_dynamic all_static symbolic_links 
! 
! include common_macros.mak
! 
! WARNING_FLAGS= -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -Wno-long-double
! 
! CXXFLAGS_COMMON =  -I${STLPORT_DIR} -DGXX_INCLUDE_PATH=${GXX_INCLUDE_PATH} -D_REENTRANT -D_PTHREADS -ftemplate-depth-32 -malign-natural -no-cpp-precomp -fexceptions ${WARNING_FLAGS}
! 
! CXXFLAGS_RELEASE_static = $(CXXFLAGS_COMMON) -O2 -fPIC
! CXXFLAGS_RELEASE_dynamic = $(CXXFLAGS_COMMON) -O2 -fPIC
! 
! CXXFLAGS_DEBUG_static = $(CXXFLAGS_COMMON) -g -fPIC
! CXXFLAGS_DEBUG_dynamic = $(CXXFLAGS_COMMON) -g -fPIC
! 
! CXXFLAGS_STLDEBUG_static = $(CXXFLAGS_DEBUG_static) -D_STLP_DEBUG
! CXXFLAGS_STLDEBUG_dynamic = $(CXXFLAGS_DEBUG_dynamic) -D_STLP_DEBUG
! 
! include common_percent_rules.mak
! include common_rules.mak
! 
! 
! #install: all
! #	cp -p $(LIB_TARGET) ${D_LIB_TARGET} ../lib
! 
! #%.s: %.cpp
! #	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
! 
! 
*** misc/STLport-4.5/src/gcc-3.0.mak	Mon Nov 10 18:30:01 2003
--- misc/build/STLport-4.5/src/gcc-3.0.mak	Fri Oct 31 12:11:56 2003
***************
*** 1 ****
! dummy
--- 1,59 ----
! #
! # Note : this makefile is for gcc-3 !
! #
! 
! #
! # compiler
! # take these from the OOo build environment
! CC*= gcc 
! CXX*= g++
! 
! #
! # Basename for libraries
! #
! LIB_BASENAME = libstlport_gcc
! 
! #
! # guts for common stuff
! #
! #
! LINK=ar cr
! DYN_LINK=$(CXX) --fexceptions -shared -o
! 
! OBJEXT=o
! DYNEXT=so
! STEXT=a
! RM=rm -rf
! PATH_SEP=/
! MKDIR=mkdir -p
! COMP=GCC$(ARCH)
! INSTALL_STEP = install_unix 
! 
! all:  all_dynamic all_static symbolic_links 
! 
! include common_macros.mak
! 
! WARNING_FLAGS= -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftemplate-depth-32
! 
! CXXFLAGS_COMMON =  -D_REENTRANT -DGXX_INCLUDE_PATH=${GXX_INCLUDE_PATH} -fexceptions -I${STLPORT_DIR} ${WARNING_FLAGS}
! 
! CXXFLAGS_RELEASE_static = $(CXXFLAGS_COMMON) -O2 -fPIC
! CXXFLAGS_RELEASE_dynamic = $(CXXFLAGS_COMMON) -O2 -fPIC
! 
! CXXFLAGS_DEBUG_static = $(CXXFLAGS_COMMON) -g -fPIC
! CXXFLAGS_DEBUG_dynamic = $(CXXFLAGS_COMMON) -g -fPIC
! 
! CXXFLAGS_STLDEBUG_static = $(CXXFLAGS_DEBUG_static) -D_STLP_DEBUG
! CXXFLAGS_STLDEBUG_dynamic = $(CXXFLAGS_DEBUG_dynamic) -D_STLP_DEBUG
! 
! include common_percent_rules.mak
! include common_rules.mak
! 
! 
! #install: all
! #	cp -p $(LIB_TARGET) ${D_LIB_TARGET} ../lib
! 
! #%.s: %.cpp
! #	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
! 
! 
*** misc/STLport-4.5/src/gcc-freebsd.mak	Sat Jul 28 23:36:25 2001
--- misc/build/STLport-4.5/src/gcc-freebsd.mak	Fri Oct 31 12:11:56 2003
***************
*** 5,12 ****
  #
  # compiler
  #
! CC = gcc -pthread
! CXX = c++ -pthread -fexceptions
  
  #
  # Basename for libraries
--- 5,12 ----
  #
  # compiler
  #
! CC+= ${PTHREAD_CFLAGS} -D_REENTRANT
! CXX+= ${PTHREAD_CFLAGS} -D_REENTRANT -fexceptions
  
  #
  # Basename for libraries
***************
*** 19,25 ****
  #
  LINK=ar cr
  # 2.95 flag
! DYN_LINK=c++ -pthread -fexceptions -shared -o
  
  OBJEXT=o
  DYNEXT=so
--- 19,25 ----
  #
  LINK=ar cr
  # 2.95 flag
! DYN_LINK=${CXX} ${PTHREAD_LIBS} -fexceptions -shared -o
  
  OBJEXT=o
  DYNEXT=so
***************
*** 39,48 ****
  
  WARNING_FLAGS= -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftemplate-depth-32
  
! CXXFLAGS_COMMON = -I${STLPORT_DIR} ${WARNING_FLAGS}
  
! CXXFLAGS_RELEASE_static = $(CXXFLAGS_COMMON) -O2
! CXXFLAGS_RELEASE_dynamic = $(CXXFLAGS_COMMON) -O2 -fPIC
  
  CXXFLAGS_DEBUG_static = $(CXXFLAGS_COMMON) -g
  CXXFLAGS_DEBUG_dynamic = $(CXXFLAGS_COMMON) -g -fPIC
--- 39,48 ----
  
  WARNING_FLAGS= -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftemplate-depth-32
  
! CXXFLAGS_COMMON = -I${STLPORT_DIR} -DGXX_INCLUDE_PATH=${GXX_INCLUDE_PATH} ${WARNING_FLAGS}
  
! CXXFLAGS_RELEASE_static = $(CXXFLAGS_COMMON) ${CXXFLAGS}
! CXXFLAGS_RELEASE_dynamic = $(CXXFLAGS_COMMON) ${CXXFLAGS} -fPIC
  
  CXXFLAGS_DEBUG_static = $(CXXFLAGS_COMMON) -g
  CXXFLAGS_DEBUG_dynamic = $(CXXFLAGS_COMMON) -g -fPIC
*** misc/STLport-4.5/stlport/config/stl_gcc.h	Tue Sep  4 13:10:16 2001
--- misc/build/STLport-4.5/stlport/config/stl_gcc.h	Fri Oct 31 12:11:56 2003
***************
*** 71,80 ****
   * static data members in template classes */
  # if defined (__APPLE__)
  /* Mac OS X is missing a required typedef and standard macro */
! typedef unsigned int wint_t;
  
  #  define __unix
  
   /* Mac OS X needs one and only one source file to initialize all static data
    * members in template classes. Only one source file in an executable or
    * library can declare instances for such data members, otherwise duplicate
--- 71,82 ----
   * static data members in template classes */
  # if defined (__APPLE__)
  /* Mac OS X is missing a required typedef and standard macro */
! /* typedef int wint_t; */
  
  #  define __unix
  
+ # if ( __GNUC__ < 3 )
+ 
   /* Mac OS X needs one and only one source file to initialize all static data
    * members in template classes. Only one source file in an executable or
    * library can declare instances for such data members, otherwise duplicate
***************
*** 97,103 ****
  #  define _STLP_NATIVE_CPP_C_HEADER(header) <../g++/##header##>
  #  define _STLP_NATIVE_OLD_STREAMS_HEADER(header) <../g++/##header##>
  #  define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../g++/##header##>
! # endif
  
  
  # if defined(__BEOS__) && defined(__INTEL__)
--- 99,121 ----
  #  define _STLP_NATIVE_CPP_C_HEADER(header) <../g++/##header##>
  #  define _STLP_NATIVE_OLD_STREAMS_HEADER(header) <../g++/##header##>
  #  define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../g++/##header##>
! 
! # else
! /* Mac OS X using gcc 3.3 handles all well */
! #   undef  _STLP_NO_STATIC_TEMPLATE_DATA
! #   define _STLP_STATIC_TEMPLATE_DATA 1
! #   define _STLP_WEAK_ATTRIBUTE 1
! #   undef _STLP_NO_LONG_DOUBLE
! 
! #if 0
!  /* Mac OS X needs all "::" scope references to be "std::" */
!  #  define _STLP_NO_CSTD_FUNCTION_IMPORTS
!  #  undef _STLP_VENDOR_GLOBAL_STD
!  #  undef _STLP_VENDOR_GLOBAL_CSTD
! #endif
! 
! # endif   /* __GNUC__ < 3 */
! # endif   /* __APPLE__ */
  
  
  # if defined(__BEOS__) && defined(__INTEL__)
***************
*** 226,233 ****
  
  # if (__GNUC__ >= 3)
  
! #  define _STLP_NATIVE_INCLUDE_PATH ../g++-v3
! #  define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH ../g++-v3/backward
  
  # elif (__GNUC_MINOR__ < 8)
  
--- 244,254 ----
  
  # if (__GNUC__ >= 3)
  
! /* properly determine the STLP_NATIVE_INCLUDE_PATH */
! #undef i386
! #  define _STLP_NATIVE_INCLUDE_PATH GXX_INCLUDE_PATH
! #  define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH \
!           GXX_INCLUDE_PATH/backward
  
  # elif (__GNUC_MINOR__ < 8)
  
*** misc/STLport-4.5/stlport/cwchar	Fri Jan 26 20:39:42 2001
--- misc/build/STLport-4.5/stlport/cwchar	Fri Oct 31 12:11:56 2003
***************
*** 21,26 ****
--- 21,29 ----
  #  include <stl/_prolog.h>
  # endif
  
+ #ifdef __FreeBSD__
+ #include _STLP_NATIVE_C_HEADER(wchar.h)
+ #endif
  # include <stl/_cwchar.h>
  
  # if (_STLP_OUTERMOST_HEADER_ID == 0x120)
*** misc/STLport-4.5/stlport/stdexcept	Mon May 21 20:50:21 2001
--- misc/build/STLport-4.5/stlport/stdexcept	Fri Oct 31 12:11:56 2003
***************
*** 49,54 ****
--- 49,61 ----
  
  _STLP_BEGIN_NAMESPACE
  
+ 
+ #if defined( __GNUC__)
+ #undef _STLP_NOTHROW_INHERENTLY
+ #define _STLP_NOTHROW_INHERENTLY throw()
+ #endif
+  
+ 
  class _STLP_CLASS_DECLSPEC __Named_exception : public _STLP_EXCEPTION_BASE {
  public:
    __Named_exception(const string& __str) 
*** misc/STLport-4.5/stlport/stl/_threads.h	Tue Sep  4 13:10:20 2001
--- misc/build/STLport-4.5/stlport/stl/_threads.h	Fri Oct 31 12:11:56 2003
***************
*** 42,49 ****
  #  include <cstdlib>
  # endif
  
! // On SUN and Mac OS X gcc, zero-initialization works just fine...
! # if defined (__sun) || ( defined(__GNUC__) && defined(__APPLE__) )
  # define _STLP_MUTEX_INITIALIZER
  # endif
  
--- 42,49 ----
  #  include <cstdlib>
  # endif
  
! // On SUN zero-initialization works just fine...
! # if defined (__sun)
  # define _STLP_MUTEX_INITIALIZER
  # endif
  
*** misc/STLport-4.5/stlport/wchar.h	Fri Jan 26 20:40:06 2001
--- misc/build/STLport-4.5/stlport/wchar.h	Mon Nov 10 18:29:44 2003
***************
*** 28,38 ****
  using _STLP_VENDOR_CSTD::strspn;
  # endif
  
- # if defined (__GNUC__) && defined (__APPLE__)
- #  include _STLP_NATIVE_C_HEADER(stddef.h)
- # else
  #  include _STLP_NATIVE_C_HEADER(wchar.h)
- # endif
  
  # endif /* WINCE */
  
--- 28,34 ----