Ignore:
Timestamp:
Apr 9, 2018 12:30:48 PM (2 years ago)
Author:
riza
Message:

Re #2059 (misc): Fix some warnings related to use of external Portaudio.
Thanks to Alexander Traud for the report and patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/errno.c

    r5748 r5779  
    2121#include <pjmedia/types.h> 
    2222#include <pj/string.h> 
    23 #if defined(PJMEDIA_SOUND_IMPLEMENTATION) && \ 
    24     PJMEDIA_SOUND_IMPLEMENTATION == PJMEDIA_SOUND_PORTAUDIO_SOUND 
     23#if PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 
    2524#   include <portaudio.h> 
    2625#endif 
     
    190189 
    191190    /* See if the error comes from PortAudio. */ 
    192 #if defined(PJMEDIA_SOUND_IMPLEMENTATION) && \ 
    193     PJMEDIA_SOUND_IMPLEMENTATION == PJMEDIA_SOUND_PORTAUDIO_SOUND 
     191#if PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 
    194192    if (statcode >= PJMEDIA_PORTAUDIO_ERRNO_START && 
    195193        statcode <= PJMEDIA_PORTAUDIO_ERRNO_END) 
     
    208206 
    209207    } else  
    210 #endif  /* PJMEDIA_SOUND_IMPLEMENTATION */ 
     208#endif  /* PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO */ 
    211209 
    212210#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 
Note: See TracChangeset for help on using the changeset viewer.