فهرست منبع

obs-outputs: Disabled OpenSSL deprecated warnings on apple

Apple wants to get people to move over to their own crypto APIs instead
of using OpenSSL, so disable the warning in the files where OpenSSL is
used for the time being.
jp9000 9 سال پیش
والد
کامیت
77c538bd33
2فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 5 0
      plugins/obs-outputs/librtmp/hashswf.c
  2. 5 0
      plugins/obs-outputs/librtmp/rtmp.c

+ 5 - 0
plugins/obs-outputs/librtmp/hashswf.c

@@ -25,6 +25,11 @@
 #include "http.h"
 
 #ifdef CRYPTO
+
+#ifdef __APPLE__
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
 #ifdef USE_POLARSSL
 #include <polarssl/sha2.h>
 #ifndef SHA256_DIGEST_LENGTH

+ 5 - 0
plugins/obs-outputs/librtmp/rtmp.c

@@ -33,6 +33,11 @@
 #include "log.h"
 
 #ifdef CRYPTO
+
+#ifdef __APPLE__
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
 #ifdef USE_POLARSSL
 #include <polarssl/havege.h>
 #include <polarssl/md5.h>