Description: Test for old curl by version rather than with #ifndef
 As of curl 7.37.1, CURLOPT_READDATA and CURLOPT_WRITEDATA are enums rather
 than #defines and the old names are #defines instead; testing for them with
 #ifndef results in #define loops.  Use a version test instead to find out
 whether we need compatibility definitions.
Author: Colin Watson <cjwatson@ubuntu.com>
Bug-Debian: https://bugs.debian.org/755327
Forwarded: no
Last-Update: 2014-07-31

Index: b/src/htcp.c
===================================================================
--- a/src/htcp.c
+++ b/src/htcp.c
@@ -61,11 +61,8 @@
 
 /* deal with older versions of libcurl and curl.h */
 
-#ifndef CURLOPT_WRITEDATA
+#if (LIBCURL_VERSION_NUM < 0x070907)
 #define CURLOPT_WRITEDATA CURLOPT_FILE
-#endif
- 
-#ifndef CURLOPT_READDATA
 #define CURLOPT_READDATA CURLOPT_FILE
 #endif
 
Index: b/src/slashgrid.c
===================================================================
--- a/src/slashgrid.c
+++ b/src/slashgrid.c
@@ -89,11 +89,8 @@
 
 #define GRST_SLASH_HTCP_PORT		777
 
-#ifndef CURLOPT_WRITEDATA
+#if (LIBCURL_VERSION_NUM < 0x070907)
 #define CURLOPT_WRITEDATA CURLOPT_FILE
-#endif
- 
-#ifndef CURLOPT_READDATA
 #define CURLOPT_READDATA CURLOPT_INFILE
 #endif
 
