misc/libphysfs/platform_macosx.c
branch0.9.19
changeset 8928 10a79d89ca31
parent 8524 a65e9bcf0a03
child 9183 4cd7c7aafea7
equal deleted inserted replaced
8927:3da5182d8682 8928:10a79d89ca31
    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