Changeset 1452


Ignore:
Timestamp:
Mar 19, 2016, 5:20:36 AM (9 years ago)
Author:
valerius
Message:

sdl_mixer: Apply OS/2-specific patches.

Location:
sdl_mixer/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified sdl_mixer/trunk/configure.in

    r1448 r1452  
    11dnl Process this file with autoconf to produce a configure script.
    22AC_INIT(README)
     3AC_CONFIG_MACRO_DIR([acinclude])
    34AC_CONFIG_AUX_DIR(build-scripts)
    45
  • TabularUnified sdl_mixer/trunk/dynamic_mod.h

    r1448 r1452  
    3131        CHAR* (*MikMod_InfoDriver)(void);
    3232        CHAR* (*MikMod_InfoLoader)(void);
     33#ifdef __WATCOMC__
     34        int (*MikMod_Init)(char const*);
     35#else
    3336        BOOL (*MikMod_Init)(CHAR*);
     37#endif
    3438        void (*MikMod_RegisterAllLoaders)(void);
    3539        void (*MikMod_RegisterDriver)(struct MDRIVER*);
    3640        int* MikMod_errno;
     41#ifdef __WATCOMC__
     42        char const* (*MikMod_strerror)(int);
     43#else
    3744        char* (*MikMod_strerror)(int);
     45#endif
    3846        BOOL (*Player_Active)(void);
    3947        void (*Player_Free)(MODULE*);
  • TabularUnified sdl_mixer/trunk/dynamic_ogg.h

    r1448 r1452  
    3232        int (*ov_clear)(OggVorbis_File *vf);
    3333        vorbis_info *(*ov_info)(OggVorbis_File *vf,int link);
     34#ifdef __WATCOMC__
     35        int (*ov_open_callbacks)(void *datasource, OggVorbis_File *vf, const char *initial, long ibytes, ov_callbacks callbacks);
     36#else
    3437        int (*ov_open_callbacks)(void *datasource, OggVorbis_File *vf, char *initial, long ibytes, ov_callbacks callbacks);
     38#endif
    3539        ogg_int64_t (*ov_pcm_total)(OggVorbis_File *vf,int i);
    3640#ifdef OGG_USE_TREMOR
  • TabularUnified sdl_mixer/trunk/load_flac.c

    r1448 r1452  
    5959                FLAC_SDL_Data *data = (FLAC_SDL_Data *)client_data;
    6060
    61                 *bytes = SDL_RWread (data->sdl_src, buffer, sizeof (FLAC__byte),
     61                *((int *)bytes) = SDL_RWread (data->sdl_src, buffer, sizeof (FLAC__byte),
    6262                                                                *bytes);
    6363
    64                 if(*bytes < 0) { // error in read
     64                if(*((int *)bytes) < 0) { // error in read
    6565                        return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
    6666                }
  • TabularUnified sdl_mixer/trunk/mixer.c

    r1448 r1452  
    284284
    285285/* Mixing function */
     286#ifdef __WATCOMC__
     287static void SDLCALL mix_channels(void *udata, Uint8 *stream, int len)
     288#else
    286289static void mix_channels(void *udata, Uint8 *stream, int len)
     290#endif
    287291{
    288292        Uint8 *mix_input;
  • TabularUnified sdl_mixer/trunk/music.c

    r1448 r1452  
    15791579        }
    15801580
    1581 #if defined(__MINGW32__) || defined(__MINGW64__)
     1581#if defined(__MINGW32__) || defined(__MINGW64__) || defined(__WATCOMC__)
    15821582        for (path = strtok(paths, ";"); path; path = strtok(NULL, ";")) {
    15831583#elif defined(_WIN32)
  • TabularUnified sdl_mixer/trunk/music_flac.c

    r1448 r1452  
    6161        // make sure there is something to be reading
    6262        if (*bytes > 0) {
    63                 *bytes = SDL_RWread (data->rwops, buffer, sizeof (FLAC__byte), *bytes);
    64 
    65                 if (*bytes < 0) { // error in read
     63                *((int *)bytes) = SDL_RWread (data->rwops, buffer, sizeof (FLAC__byte), *bytes);
     64
     65                if (*((int *)bytes) < 0) { // error in read
    6666                        return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
    6767                }
    68                 else if (*bytes == 0 ) { // no data was read (EOF)
     68                else if (*((int *)bytes) == 0 ) { // no data was read (EOF)
    6969                        return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM;
    7070                }
  • TabularUnified sdl_mixer/trunk/music_mod.c

    r1448 r1452  
    150150} LMM_MREADER;
    151151
     152#ifdef __WATCOMC__
     153int LMM_Seek(struct MREADER *mr,long to,int dir)
     154#else
    152155BOOL LMM_Seek(struct MREADER *mr,long to,int dir)
     156#endif
    153157{
    154158        LMM_MREADER* lmmmr = (LMM_MREADER*)mr;
Note: See TracChangeset for help on using the changeset viewer.