]> granicus.if.org Git - curl/commitdiff
easy: define away easy_events() for non-debug builds
authorDaniel Stenberg <daniel@haxx.se>
Sun, 25 Aug 2013 17:10:02 +0000 (19:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 25 Aug 2013 17:10:02 +0000 (19:10 +0200)
lib/easy.c

index 2ac92a2f66e0d7b09a3a03a91b46d6cda652b96e..b7507019b97bba11edcbc9b8af942b336d1983b4 100644 (file)
@@ -712,6 +712,9 @@ static CURLcode easy_events(CURLM *multi)
 
   return wait_or_timeout(multi, &evs);
 }
+#else /* CURLDEBUG */
+/* when not built with debug, this function doesn't exist */
+#define easy_events(x) CURLE_NOT_BUILT_IN
 #endif
 
 static CURLcode easy_transfer(CURLM *multi)