]> granicus.if.org Git - curl/commitdiff
curl_setup: Define CURL_NO_OLDIES for building libcurl
authorJay Satiro <raysatiro@yahoo.com>
Tue, 1 Aug 2017 06:56:48 +0000 (02:56 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 1 Aug 2017 06:56:48 +0000 (02:56 -0400)
.. to catch accidental use of deprecated error codes.

Ref: https://github.com/curl/curl/issues/1688#issuecomment-316764237

lib/curl_setup.h

index fc597d75dcdb4371049b4bf3307bba91805a8814..4a3b85c4509db8fccf05583473d834b0d0368cdf 100644 (file)
  *
  ***************************************************************************/
 
+#if defined(BUILDING_LIBCURL) && !defined(CURL_NO_OLDIES)
+#define CURL_NO_OLDIES
+#endif
+
 /*
  * Define WIN32 when build target is Win32 API
  */