Changeset b76d7cf6283749d91448cb2b175f7cd9889fbe02

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

[c4fef7e0c05f6e406186630b1b3566e951b805ce]

git-author:
Sam Hocevar <sam@videolan.org> 1138798866 +0000
Message:
  • Got rid of SYS_DARWIN everywhere.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/main.h

    r5827c89 rb76d7cf  
    7171    vlc_object_t *         p_appthread; 
    7272    char *                 psz_vlcpath; 
    73 #elif defined( SYS_DARWIN
     73#elif defined( __APPLE__
    7474    char *                 psz_vlcpath; 
    7575    vlc_iconv_t            iconv_macosx; /* for HFS+ file names */ 
     
    111111    /* Locks */ 
    112112    vlc_mutex_t            config_lock;          /* lock for the config file */ 
    113 #ifdef SYS_DARWIN 
     113#ifdef __APPLE__ 
    114114    vlc_mutex_t            quicktime_lock;          /* QT is not thread safe on OSX */ 
    115115#endif 
  • include/os_specific.h

    r2cb472d rb76d7cf  
    2929#if defined( SYS_BEOS ) 
    3030#   include "beos_specific.h" 
    31 #elif defined( SYS_DARWIN
     31#elif defined( __APPLE__
    3232#   include "darwin_specific.h" 
    3333#elif defined( WIN32 ) || defined( UNDER_CE ) 
  • include/vlc_common.h

    r8eaff12 rb76d7cf  
    797797#endif 
    798798 
    799 #if !defined(HAVE_VASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS) 
     799#if !defined(HAVE_VASPRINTF) || defined(__APPLE__) || defined(SYS_BEOS) 
    800800#   define vasprintf vlc_vasprintf 
    801801    VLC_EXPORT( int, vlc_vasprintf, (char **, const char *, va_list ) ); 
     
    804804#endif 
    805805 
    806 #if !defined(HAVE_ASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS) 
     806#if !defined(HAVE_ASPRINTF) || defined(__APPLE__) || defined(SYS_BEOS) 
    807807#   define asprintf vlc_asprintf 
    808808    VLC_EXPORT( int, vlc_asprintf, (char **, const char *, ... ) ); 
  • include/vlc_config.h

    r2cb472d rb76d7cf  
    4848#ifdef SYS_BEOS 
    4949#  define CONFIG_DIR                    "config/settings/VideoLAN Client" 
    50 #elif SYS_DARWIN 
     50#elif __APPLE__ 
    5151#  define CONFIG_DIR                    "Library/Preferences/VLC" 
    5252#elif defined( WIN32 ) || defined( UNDER_CE ) 
  • include/vlc_threads.h

    r2cb472d rb76d7cf  
    7070 
    7171/* Thread priorities */ 
    72 #ifdef SYS_DARWIN 
     72#ifdef __APPLE__ 
    7373#   define VLC_THREAD_PRIORITY_LOW (-47) 
    7474#   define VLC_THREAD_PRIORITY_INPUT 37 
  • modules/access/vcd/cdrom.c

    r2cb472d rb76d7cf  
    4848#if defined( SYS_BSDI ) 
    4949#   include <dvd.h> 
    50 #elif defined ( SYS_DARWIN
     50#elif defined ( __APPLE__
    5151#   include <CoreFoundation/CFBase.h> 
    5252#   include <IOKit/IOKitLib.h> 
     
    222222         */ 
    223223 
    224 #if defined( SYS_DARWIN
     224#if defined( __APPLE__
    225225 
    226226        CDTOC *pTOC; 
     
    582582         */ 
    583583 
    584 #if defined( SYS_DARWIN
     584#if defined( __APPLE__
    585585        dk_cd_read_t cd_read; 
    586586 
     
    954954} 
    955955 
    956 #if defined( SYS_DARWIN
     956#if defined( __APPLE__
    957957/**************************************************************************** 
    958958 * darwin_getTOC: get the TOC 
     
    10991099    return( i_tracks ); 
    11001100} 
    1101 #endif /* SYS_DARWIN */ 
     1101#endif /* __APPLE__ */ 
    11021102 
    11031103#if defined( WIN32 ) 
  • modules/access/vcd/cdrom_internals.h

    r2cb472d rb76d7cf  
    6767 * Platform specifics 
    6868 *****************************************************************************/ 
    69 #if defined( SYS_DARWIN
     69#if defined( __APPLE__
    7070#define darwin_freeTOC( p ) free( (void*)p ) 
    7171#define CD_MIN_TRACK_NO 01 
     
    205205static void   CloseVCDImage( vlc_object_t *, struct vcddev_s * ); 
    206206 
    207 #if defined( SYS_DARWIN
     207#if defined( __APPLE__
    208208static CDTOC *darwin_getTOC( vlc_object_t *, const struct vcddev_s * ); 
    209209static int    darwin_getNumberOfDescriptors( CDTOC * ); 
  • modules/audio_filter/resampler/bandlimited.c

    r2cb472d rb76d7cf  
    107107    } 
    108108 
    109 #if !defined( SYS_DARWIN
     109#if !defined( __APPLE__
    110110    if( !config_GetInt( p_this, "hq-resampling" ) ) 
    111111    { 
  • modules/codec/cmml/browser_open.c

    r2cb472d rb76d7cf  
    3232int browser_Open( const char *psz_url ) 
    3333{ 
    34 #ifdef SYS_DARWIN 
     34#ifdef __APPLE__ 
    3535    char *psz_open_commandline; 
    3636 
  • modules/codec/mpeg_audio.c

    r2cb472d rb76d7cf  
    107107    set_category( CAT_INPUT ); 
    108108    set_subcategory( SUBCAT_INPUT_ACODEC ); 
    109 #if defined(SYS_DARWIN) || defined(UNDER_CE) 
     109#if defined(__APPLE__) || defined(UNDER_CE) 
    110110   set_capability( "decoder", 5 ); 
    111111#else 
  • modules/codec/quicktime.c

    r9bb495c rb76d7cf  
    3232#include <vlc/decoder.h> 
    3333 
    34 #if !defined (SYS_DARWIN) && !defined(WIN32) 
     34#if !defined (__APPLE__) && !defined(WIN32) 
    3535# define LOADER 1 
    3636#endif 
    3737 
    38 #ifdef SYS_DARWIN 
     38#ifdef __APPLE__ 
    3939#include <QuickTime/QuickTimeComponents.h> 
    4040#include <QuickTime/Movies.h> 
     
    8484    ((uint32_t)( ((a)<<24)|((b)<<16)|((c)<<8)|(d))) 
    8585 
    86 #ifndef SYS_DARWIN 
     86#ifndef __APPLE__ 
    8787typedef struct OpaqueSoundConverter*    SoundConverter; 
    8888#ifndef LOADER 
     
    104104} SoundComponentData; 
    105105 
    106 #endif /* SYS_DARWIN */ 
     106#endif /* __APPLE__ */ 
    107107 
    108108struct decoder_sys_t 
    109109{ 
    110110    /* library */ 
    111 #ifndef SYS_DARWIN 
     111#ifndef __APPLE__ 
    112112#ifdef LOADER 
    113113    ldt_fs_t    *ldt_fs; 
     
    118118    OSErr (*InitializeQTML)             ( long flags ); 
    119119    OSErr (*TerminateQTML)              ( void ); 
    120 #endif /* SYS_DARWIN */ 
     120#endif /* __APPLE__ */ 
    121121 
    122122    /* Audio */ 
     
    289289    var_Get( p_dec->p_libvlc, "qt_mutex", &lockval ); 
    290290    vlc_mutex_lock( lockval.p_address ); 
    291 #ifdef SYS_DARWIN 
     291#ifdef __APPLE__ 
    292292    /* on OS X QT is not threadsafe */ 
    293293    vlc_mutex_lock( &p_dec->p_vlc->quicktime_lock ); 
     
    315315    } 
    316316 
    317 #ifndef SYS_DARWIN 
     317#ifndef __APPLE__ 
    318318    FreeLibrary( p_sys->qtml ); 
    319319    FreeLibrary( p_sys->qts ); 
     
    331331#endif 
    332332 
    333 #ifdef SYS_DARWIN 
     333#ifdef __APPLE__ 
    334334    vlc_mutex_unlock( &p_dec->p_vlc->quicktime_lock ); 
    335335#endif 
     
    363363    var_Get( p_dec->p_libvlc, "qt_mutex", &lockval ); 
    364364    vlc_mutex_lock( lockval.p_address ); 
    365 #ifdef SYS_DARWIN 
     365#ifdef __APPLE__ 
    366366    /* on OS X QT is not threadsafe */ 
    367367    vlc_mutex_lock( &p_dec->p_vlc->quicktime_lock ); 
    368368#endif 
    369369 
    370 #ifdef SYS_DARWIN 
     370#ifdef __APPLE__ 
    371371    EnterMovies(); 
    372372#endif 
     
    378378    } 
    379379 
    380 #ifndef SYS_DARWIN 
     380#ifndef __APPLE__ 
    381381    if( ( i_error = p_sys->InitializeQTML( 6 + 16 ) ) ) 
    382382    { 
     
    477477    p_sys->i_out_frames = 0; 
    478478 
    479 #ifdef SYS_DARWIN 
     479#ifdef __APPLE__ 
    480480    vlc_mutex_unlock( &p_dec->p_vlc->quicktime_lock ); 
    481481#endif 
     
    488488    Restore_LDT_Keeper( p_sys->ldt_fs ); 
    489489#endif 
    490 #ifdef SYS_DARWIN 
     490#ifdef __APPLE__ 
    491491    vlc_mutex_unlock( &p_dec->p_vlc->quicktime_lock ); 
    492492#endif 
     
    673673    vlc_mutex_lock( lockval.p_address ); 
    674674 
    675 #ifdef SYS_DARWIN 
     675#ifdef __APPLE__ 
    676676    EnterMovies(); 
    677677#endif 
     
    683683    } 
    684684 
    685 #ifndef SYS_DARWIN 
     685#ifndef __APPLE__ 
    686686    if( ( i_result = p_sys->InitializeQTML( 6 + 16 ) ) ) 
    687687    { 
     
    920920    decoder_sys_t *p_sys = p_dec->p_sys; 
    921921 
    922 #ifdef SYS_DARWIN 
     922#ifdef __APPLE__ 
    923923    p_sys->SoundConverterOpen       = (void*)SoundConverterOpen; 
    924924    p_sys->SoundConverterClose      = (void*)SoundConverterClose; 
     
    975975 
    976976    msg_Dbg( p_dec, "Standard init done" ); 
    977 #endif /* else SYS_DARWIN */ 
     977#endif /* else __APPLE__ */ 
    978978 
    979979    return VLC_SUCCESS; 
     
    988988    decoder_sys_t *p_sys = p_dec->p_sys; 
    989989 
    990 #ifdef SYS_DARWIN 
     990#ifdef __APPLE__ 
    991991    p_sys->FindNextComponent        = (void*)FindNextComponent; 
    992992    p_sys->OpenComponent            = (void*)OpenComponent; 
     
    10481048        return VLC_EGENERIC; 
    10491049    } 
    1050 #endif /* SYS_DARWIN */ 
     1050#endif /* __APPLE__ */ 
    10511051 
    10521052    return VLC_SUCCESS; 
  • modules/control/http/http.c

    r2cb472d rb76d7cf  
    8484 * Local functions 
    8585 *****************************************************************************/ 
    86 #if !defined(SYS_DARWIN) && !defined(SYS_BEOS) && !defined(WIN32) 
     86#if !defined(__APPLE__) && !defined(SYS_BEOS) && !defined(WIN32) 
    8787static int DirectoryCheck( char *psz_dir ) 
    8888{ 
     
    272272    p_sys->pp_files = NULL; 
    273273 
    274 #if defined(SYS_DARWIN) || defined(SYS_BEOS) || defined(WIN32) 
     274#if defined(__APPLE__) || defined(SYS_BEOS) || defined(WIN32) 
    275275    if ( ( psz_src = config_GetPsz( p_intf, "http-src" )) == NULL ) 
    276276    { 
  • modules/demux/mkv.cpp

    r02616d2 rb76d7cf  
    46194619            msg_Dbg( &sys.demuxer, "|   |   + family=%d", *(uint32*)uid->GetBuffer() ); 
    46204620        } 
    4621 #if defined( HAVE_GMTIME_R ) && !defined( SYS_DARWIN
     4621#if defined( HAVE_GMTIME_R ) && !defined( __APPLE__
    46224622        else if( MKV_IS_ID( l, KaxDateUTC ) ) 
    46234623        { 
  • modules/gui/wxwidgets/dialogs/updatevlc.cpp

    r2cb472d rb76d7cf  
    4040#   define UPDATE_VLC_ARCH "i386" 
    4141#else 
    42 #ifdef SYS_DARWIN 
     42#ifdef __APPLE__ 
    4343#   define UPDATE_VLC_OS "macosx" 
    4444#   define UPDATE_VLC_ARCH "ppc" 
  • modules/misc/freetype.c

    r2a4ba1c rb76d7cf  
    4949#include FT_GLYPH_H 
    5050 
    51 #ifdef SYS_DARWIN 
     51#ifdef __APPLE__ 
    5252#define DEFAULT_FONT "/System/Library/Fonts/LucidaGrande.dfont" 
    5353#elif defined( SYS_BEOS ) 
     
    249249        GetWindowsDirectory( psz_fontfile, PATH_MAX + 1 ); 
    250250        strcat( psz_fontfile, "\\fonts\\arial.ttf" ); 
    251 #elif SYS_DARWIN 
     251#elif __APPLE__ 
    252252        strcpy( psz_fontfile, DEFAULT_FONT ); 
    253253#else 
  • modules/misc/logger.c

    r66f6a91 rb76d7cf  
    4242#define MODE_SYSLOG 2 
    4343 
    44 #ifdef SYS_DARWIN 
     44#ifdef __APPLE__ 
    4545#define LOG_DIR "Library/Logs/" 
    4646#endif 
     
    194194        if( !psz_file ) 
    195195        { 
    196 #ifdef SYS_DARWIN 
     196#ifdef __APPLE__ 
    197197            char *psz_homedir = p_this->p_vlc->psz_homedir; 
    198198 
  • modules/video_output/opengl.c

    r2cb472d rb76d7cf  
    3434#include <vlc/vout.h> 
    3535 
    36 #ifdef SYS_DARWIN 
     36#ifdef __APPLE__ 
    3737#include <OpenGL/gl.h> 
    3838#include <OpenGL/glext.h> 
     
    134134    set_subcategory( SUBCAT_VIDEO_VOUT ); 
    135135    set_description( _("OpenGL video output") ); 
    136 #ifdef SYS_DARWIN 
     136#ifdef __APPLE__ 
    137137    set_capability( "video output", 200 ); 
    138138#else 
     
    188188 
    189189    p_sys->i_index = 0; 
    190 #ifdef SYS_DARWIN 
     190#ifdef __APPLE__ 
    191191    p_sys->i_tex_width  = p_vout->fmt_in.i_width; 
    192192    p_sys->i_tex_height = p_vout->fmt_in.i_height; 
     
    269269    p_sys->p_vout->pf_init( p_sys->p_vout ); 
    270270 
    271 #if defined( SYS_DARWIN ) || (VLCGL_FORMAT == YCBCR_MESA) 
     271#if defined( __APPLE__ ) || (VLCGL_FORMAT == YCBCR_MESA) 
    272272    p_vout->output.i_chroma = VLC_FOURCC('Y','U','Y','2'); 
    273273    i_pixel_pitch = 2; 
     
    479479    p_vout->i_changes = p_sys->p_vout->i_changes; 
    480480 
    481 #ifdef SYS_DARWIN 
     481#ifdef __APPLE__ 
    482482    if( p_sys->p_vout->pf_lock && 
    483483        p_sys->p_vout->pf_lock( p_sys->p_vout ) ) 
     
    559559    } 
    560560 
    561 #ifdef SYS_DARWIN 
     561#ifdef __APPLE__ 
    562562    int i_new_index; 
    563563    i_new_index = ( p_sys->i_index + 1 ) & 1; 
     
    609609    /* glTexCoord works differently with GL_TEXTURE_2D and 
    610610       GL_TEXTURE_RECTANGLE_EXT */ 
    611 #ifdef SYS_DARWIN 
     611#ifdef __APPLE__ 
    612612    f_x = (float)p_vout->fmt_out.i_x_offset; 
    613613    f_y = (float)p_vout->fmt_out.i_y_offset; 
     
    750750        glTexEnvf( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE ); 
    751751 
    752 #ifdef SYS_DARWIN 
     752#ifdef __APPLE__ 
    753753        /* Tell the driver not to make a copy of the texture but to use 
    754754           our buffer */ 
  • modules/video_output/x11/xcommon.c

    r2cb472d rb76d7cf  
    19591959    if( config_GetInt( p_vout, MODULE_STRING "-shm" ) ) 
    19601960    { 
    1961 #   ifdef SYS_DARWIN 
     1961#   ifdef __APPLE__ 
    19621962        /* FIXME: As of 2001-03-16, XFree4 for MacOS X does not support Xshm */ 
    19631963#   else 
  • src/vlc.c

    r2cb472d rb76d7cf  
    5555    int i_ret; 
    5656 
    57 #ifndef SYS_DARWIN 
     57#ifndef __APPLE__ 
    5858    /* This clutters OSX GUI error logs */ 
    5959    fprintf( stderr, "VLC media player %s\n", VLC_Version() );