bel2125 преди 7 години
родител
ревизия
56c5f77cf8
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      src/civetweb.c

+ 4 - 2
src/civetweb.c

@@ -198,7 +198,7 @@ void __cyg_profile_func_exit(void *this_fn, void *call_site)
 void
 __cyg_profile_func_enter(void *this_fn, void *call_site)
 {
-	if (this_fn != printf) {
+	if ((void *)this_fn != (void *)printf) {
 		printf("E %p %p\n", this_fn, call_site);
 	}
 }
@@ -206,7 +206,7 @@ __cyg_profile_func_enter(void *this_fn, void *call_site)
 void
 __cyg_profile_func_exit(void *this_fn, void *call_site)
 {
-	if (this_fn != printf) {
+	if ((void *)this_fn != (void *)printf) {
 		printf("X %p %p\n", this_fn, call_site);
 	}
 }
@@ -1747,8 +1747,10 @@ typedef struct SSL_CTX SSL_CTX;
 
 #if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
 /* If OpenSSL headers are included, automatically select the API version */
+#ifndef OPENSSL_API_1_1
 #define OPENSSL_API_1_1
 #endif
+#endif
 
 
 #else