Changeset 4901


Ignore:
Timestamp:
Aug 22, 2014 1:44:29 AM (10 years ago)
Author:
nanang
Message:

Misc (re #1751): Suppress compile warnings of OpenSSL deprecation on MacOSX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c

    r4871 r4901  
    5555#  pragma comment( lib, "libeay32") 
    5656#  pragma comment( lib, "ssleay32") 
     57#endif 
     58 
     59 
     60/* Suppress compile warning of OpenSSL deprecation (OpenSSL is deprecated 
     61 * since MacOSX 10.7). 
     62 */ 
     63#if defined(PJ_DARWINOS) && PJ_DARWINOS==1 
     64#  pragma GCC diagnostic push 
     65#  pragma GCC diagnostic ignored "-Wdeprecated-declarations" 
    5766#endif 
    5867 
     
    26992708} 
    27002709 
     2710 
     2711/* Put back deprecation warning setting */ 
     2712#if defined(PJ_DARWINOS) && PJ_DARWINOS==1 
     2713#  pragma GCC diagnostic pop 
     2714#endif 
     2715 
     2716 
    27012717#endif  /* PJ_HAS_SSL_SOCK */ 
    27022718 
Note: See TracChangeset for help on using the changeset viewer.