equal
deleted
inserted
replaced
25 #ifdef Free |
25 #ifdef Free |
26 #undef Free |
26 #undef Free |
27 #endif |
27 #endif |
28 |
28 |
29 #include "physfs_internal.h" |
29 #include "physfs_internal.h" |
|
30 |
|
31 |
|
32 #if defined(__APPLE__) |
|
33 #if defined(TARGET_OS_MAC) && MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4 |
|
34 /* __eprintf shouldn't have been made visible from libstdc++, or anywhere, but |
|
35 on Mac OS X 10.4 it was defined in libstdc++.6.0.3.dylib; so on that platform |
|
36 we have to keep defining it to keep binary compatibility. |
|
37 We can't just put the libgcc version in the export list, because that |
|
38 doesn't work; once a symbol is marked as hidden, it stays that way. */ |
|
39 |
|
40 void __eprintf (const char *string, const char *expression, |
|
41 unsigned int line, const char *filename) |
|
42 { |
|
43 fprintf(stderr, string, expression, line, filename); |
|
44 fflush(stderr); |
|
45 abort(); |
|
46 } |
|
47 #endif |
|
48 #endif /* __APPLE__ */ |
30 |
49 |
31 |
50 |
32 /* Wrap PHYSFS_Allocator in a CFAllocator... */ |
51 /* Wrap PHYSFS_Allocator in a CFAllocator... */ |
33 static CFAllocatorRef cfallocator = NULL; |
52 static CFAllocatorRef cfallocator = NULL; |
34 |
53 |