Changeset c4fef7e0c05f6e406186630b1b3566e951b805ce

Show
Ignore:
Timestamp:
01/02/06 13:44:16 (3 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1138797856 +0000
git-parent:

[7fc2d7308d17b202d6a1212438bcd19985f5f92e]

git-author:
Sam Hocevar <sam@videolan.org> 1138797856 +0000
Message:
  • Replaced "SYS_DARWIN" with either APPLE (meaning OS X) or ppc and
    ppc64 (meaning PowerPC).
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/extras/libc.c

    r2cb472d rc4fef7e  
    183183 * vasprintf: 
    184184 *****************************************************************************/ 
    185 #if !defined(HAVE_VASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS) 
     185#if !defined(HAVE_VASPRINTF) || defined(__APPLE__) || defined(SYS_BEOS) 
    186186int vlc_vasprintf(char **strp, const char *fmt, va_list ap) 
    187187{ 
     
    229229 * asprintf: 
    230230 *****************************************************************************/ 
    231 #if !defined(HAVE_ASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS) 
     231#if !defined(HAVE_ASPRINTF) || defined(__APPLE__) || defined(SYS_BEOS) 
    232232int vlc_asprintf( char **strp, const char *fmt, ... ) 
    233233{ 
  • src/interface/interface.c

    ra1e597b rc4fef7e  
    4646#include "video_output.h" 
    4747 
    48 #ifdef SYS_DARWIN 
    49 #    include "Cocoa/Cocoa.h" 
    50 #endif /* SYS_DARWIN */ 
     48#ifdef __APPLE__ 
     49#    include <Cocoa/Cocoa.h> 
     50#endif 
    5151 
    5252/***************************************************************************** 
     
    6161                            vlc_value_t , vlc_value_t , void * ); 
    6262 
    63 #ifdef SYS_DARWIN 
     63#ifdef __APPLE__ 
    6464/***************************************************************************** 
    6565 * VLCApplication interface 
     
    154154int intf_RunThread( intf_thread_t *p_intf ) 
    155155{ 
    156 #ifdef SYS_DARWIN 
     156#ifdef __APPLE__ 
    157157    NSAutoreleasePool * o_pool; 
    158158 
     
    309309        { 
    310310            p_intf->b_die = VLC_TRUE; 
    311 #ifdef SYS_DARWIN 
     311#ifdef __APPLE__ 
    312312    if( strncmp( p_intf->p_vlc->psz_object_name, "clivlc", 6 ) ) 
    313313    { 
     
    458458} 
    459459 
    460 #ifdef SYS_DARWIN 
     460#ifdef __APPLE__ 
    461461/***************************************************************************** 
    462462 * VLCApplication implementation  
  • src/interface/intf_eject.c

    r2cb472d rc4fef7e  
    102102    int i_ret = VLC_SUCCESS; 
    103103 
    104 #ifdef SYS_DARWIN 
     104#ifdef __APPLE__ 
    105105    FILE *p_eject; 
    106106    char *psz_disk; 
  • src/libvlc.c

    r2f503ef rc4fef7e  
    251251    /* Initialize mutexes */ 
    252252    vlc_mutex_init( p_vlc, &p_vlc->config_lock ); 
    253 #ifdef SYS_DARWIN 
     253#ifdef __APPLE__ 
    254254    vlc_mutex_init( p_vlc, &p_vlc->quicktime_lock ); 
    255255    vlc_thread_set_priority( p_vlc, VLC_THREAD_PRIORITY_LOW ); 
     
    20142014 
    20152015    char *          psz_path; 
    2016 #if defined( SYS_DARWIN ) || defined ( WIN32 ) || defined( SYS_BEOS ) 
     2016#if defined( __APPLE__ ) || defined ( WIN32 ) || defined( SYS_BEOS ) 
    20172017    char            psz_tmp[1024]; 
    20182018#endif 
     
    20272027    else if( psz_lang ) 
    20282028    { 
    2029 #ifdef SYS_DARWIN 
     2029#ifdef __APPLE__ 
    20302030        /* I need that under Darwin, please check it doesn't disturb 
    20312031         * other platforms. --Meuuh */ 
     
    20512051 
    20522052    /* Specify where to find the locales for current domain */ 
    2053 #if !defined( SYS_DARWIN ) && !defined( WIN32 ) && !defined( SYS_BEOS ) 
     2053#if !defined( __APPLE__ ) && !defined( WIN32 ) && !defined( SYS_BEOS ) 
    20542054    psz_path = LOCALEDIR; 
    20552055#else 
  • src/libvlc.h

    r2f503ef rc4fef7e  
    146146    "-1 (default), 48000, 44100, 32000, 22050, 16000, 11025, 8000.") 
    147147 
    148 #if !defined( SYS_DARWIN
     148#if !defined( __APPLE__
    149149#define AOUT_RESAMP_TEXT N_("High quality audio resampling") 
    150150#define AOUT_RESAMP_LONGTEXT N_( \ 
     
    10551055    add_integer( "aout-rate", -1, NULL, AOUT_RATE_TEXT, 
    10561056                 AOUT_RATE_LONGTEXT, VLC_TRUE ); 
    1057 #if !defined( SYS_DARWIN
     1057#if !defined( __APPLE__
    10581058    add_bool( "hq-resampling", 1, NULL, AOUT_RESAMP_TEXT, 
    10591059              AOUT_RESAMP_LONGTEXT, VLC_TRUE ); 
     
    10911091    add_bool( "quiet-synchro", 0, NULL, QUIET_SYNCHRO_TEXT, 
    10921092              QUIET_SYNCHRO_LONGTEXT, VLC_TRUE ); 
    1093 #ifndef SYS_DARWIN 
     1093#ifndef __APPLE__ 
    10941094    add_bool( "overlay", 1, NULL, OVERLAY_TEXT, OVERLAY_LONGTEXT, VLC_TRUE ); 
    10951095#endif 
     
    13761376              MINIMIZE_THREADS_LONGTEXT, VLC_TRUE ); 
    13771377 
    1378 #if !defined(SYS_DARWIN) && !defined(SYS_BEOS) && defined(PTHREAD_COND_T_IN_PTHREAD_H) 
     1378#if !defined(__APPLE__) && !defined(SYS_BEOS) && defined(PTHREAD_COND_T_IN_PTHREAD_H) 
    13791379    add_bool( "rt-priority", VLC_FALSE, NULL, RT_PRIORITY_TEXT, 
    13801380              RT_PRIORITY_LONGTEXT, VLC_TRUE ); 
     
    14681468    add_category_hint( N_("Hot keys"), HOTKEY_CAT_LONGTEXT , VLC_FALSE ); 
    14691469 
    1470 #if defined(SYS_DARWIN
     1470#if defined(__APPLE__
    14711471/* Don't use the following combo's */ 
    14721472 
  • src/misc/charset.c

    r2cb472d rc4fef7e  
    4444#endif 
    4545 
    46 #ifdef SYS_DARWIN 
     46#ifdef __APPLE__ 
    4747#   include <errno.h> 
    4848#   include <string.h> 
     
    239239    const char *psz_codeset; 
    240240 
    241 #if !(defined WIN32 || defined OS2 || defined SYS_DARWIN
     241#if !(defined WIN32 || defined OS2 || defined __APPLE__
    242242 
    243243# if HAVE_LANGINFO_CODESET 
     
    255255     * use setlocale here; it would return "C" when it doesn't support the 
    256256     * locale name the user has set. Darwin's setlocale is broken. */ 
    257 #  if HAVE_SETLOCALE && !SYS_DARWIN 
     257#  if HAVE_SETLOCALE && !__APPLE__ 
    258258    psz_locale = setlocale( LC_ALL, NULL ); 
    259259#  endif 
     
    275275# endif /* HAVE_LANGINFO_CODESET */ 
    276276 
    277 #elif defined SYS_DARWIN 
     277#elif defined __APPLE__ 
    278278 
    279279    /* Darwin is always using UTF-8 internally. */ 
     
    346346char *__vlc_fix_readdir_charset( vlc_object_t *p_this, const char *psz_string ) 
    347347{ 
    348 #ifdef SYS_DARWIN 
     348#ifdef __APPLE__ 
    349349    if ( p_this->p_libvlc->iconv_macosx != (vlc_iconv_t)-1 ) 
    350350    { 
  • src/misc/configuration.c

    r2cb472d rc4fef7e  
    13641364    p_this->p_vlc->ppsz_argv = ppsz_argv; 
    13651365 
    1366 #ifdef SYS_DARWIN 
     1366#ifdef __APPLE__ 
    13671367    /* When vlc.app is run by double clicking in Mac OS X, the 2nd arg 
    13681368     * is the PSN - process serial number (a unique PID-ish thingie) 
  • src/misc/cpu.c

    rad54c6e rc4fef7e  
    3434#endif 
    3535 
    36 #if defined(SYS_DARWIN) && (defined(__ppc__) || defined(__ppc64__)) 
     36#if defined(__APPLE__) && (defined(__ppc__) || defined(__ppc64__)) 
    3737#include <sys/sysctl.h> 
    3838#endif 
     
    6767    volatile uint32_t i_capabilities = CPU_CAPABILITY_NONE; 
    6868 
    69 #if defined(SYS_DARWIN) && (defined(__ppc__) || defined(__ppc64__)) 
     69#if defined(__APPLE__) && (defined(__ppc__) || defined(__ppc64__)) 
    7070    int selectors[2] = { CTL_HW, HW_VECTORUNIT }; 
    7171    int i_has_altivec = 0; 
     
    268268    return i_capabilities; 
    269269 
    270 #elif defined( __powerpc__ ) 
     270#elif defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc64__ ) 
    271271 
    272272#   ifdef CAN_COMPILE_ALTIVEC && defined( HAVE_SIGNAL_H ) 
  • src/misc/messages.c

    r444653a rc4fef7e  
    303303    msg_item_t   item;                    /* message in case of a full queue */ 
    304304 
    305 #if !defined(HAVE_VASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS) 
     305#if !defined(HAVE_VASPRINTF) || defined(__APPLE__) || defined(SYS_BEOS) 
    306306    int          i_size = strlen(psz_format) + INTF_MAX_MSG_SIZE; 
    307307#endif 
     
    318318     * Convert message to string 
    319319     */ 
    320 #if defined(HAVE_VASPRINTF) && !defined(SYS_DARWIN) && !defined( SYS_BEOS ) 
     320#if defined(HAVE_VASPRINTF) && !defined(__APPLE__) && !defined( SYS_BEOS ) 
    321321    vlc_va_copy( args, _args ); 
    322322    vasprintf( &psz_str, psz_format, args ); 
     
    364364    } 
    365365 
    366 #if !defined(HAVE_VASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS) 
     366#if !defined(HAVE_VASPRINTF) || defined(__APPLE__) || defined(SYS_BEOS) 
    367367    vlc_va_copy( args, _args ); 
    368368    vsnprintf( psz_str, i_size, psz_format, args ); 
  • src/misc/modules.c

    r8eaff12 rc4fef7e  
    764764        if( !(*ppsz_path)[0] ) continue; 
    765765 
    766 #if defined( SYS_BEOS ) || defined( SYS_DARWIN ) || defined( WIN32 ) 
     766#if defined( SYS_BEOS ) || defined( __APPLE__ ) || defined( WIN32 ) 
    767767 
    768768        /* Handle relative as well as absolute paths */ 
  • src/misc/threads.c

    r2cb472d rc4fef7e  
    572572    i_ret = pthread_create( &p_this->thread_id, NULL, func, p_data ); 
    573573 
    574 #ifndef SYS_DARWIN 
     574#ifndef __APPLE__ 
    575575    if( config_GetInt( p_this, "rt-priority" ) ) 
    576576#endif 
     
    602602        } 
    603603    } 
    604 #ifndef SYS_DARWIN 
     604#ifndef __APPLE__ 
    605605    else 
    606606    { 
     
    662662 
    663663#elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) 
    664 #ifndef SYS_DARWIN 
     664#ifndef __APPLE__ 
    665665    if( config_GetInt( p_this, "rt-priority" ) ) 
    666666#endif 
  • src/network/httpd.c

    rf0a2b19 rc4fef7e  
    14661466 
    14671467    va_start( args, psz_value ); 
    1468 #if defined(HAVE_VASPRINTF) && !defined(SYS_DARWIN) && !defined(SYS_BEOS) 
     1468#if defined(HAVE_VASPRINTF) && !defined(__APPLE__) && !defined(SYS_BEOS) 
    14691469    vasprintf( &value, psz_value, args ); 
    14701470#else 
  • src/video_output/video_output.c

    r2cb472d rc4fef7e  
    4444#include "vlc_playlist.h" 
    4545 
    46 #if defined( SYS_DARWIN
     46#if defined( __APPLE__
    4747#include "darwin_specific.h" 
    4848#endif 
  • src/video_output/vout_intf.c

    rec98101 rc4fef7e  
    377377    } 
    378378 
    379 #if defined(SYS_DARWIN) || defined(SYS_BEOS) 
     379#if defined(__APPLE__) || defined(SYS_BEOS) 
    380380    if( !val.psz_string && p_vout->p_vlc->psz_homedir ) 
    381381    {