]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
strcasecompare: include curl.h in strcase.c
authorDan Fandrich <dan@coneharvesters.com>
Mon, 31 Oct 2016 14:17:35 +0000 (15:17 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 31 Oct 2016 14:21:13 +0000 (15:21 +0100)
This should fix the "warning: 'curl_strequal' redeclared without
dllimport attribute: previous dllimport ignored" message and subsequent
link error on Windows because of the missing CURL_EXTERN on the
prototype.

lib/strcase.c

index 5f2b700e0aef5963ae2fc28fc588bb82b8a26c45..807689ef8b017966f35a05f87274cc0f575efb57 100644 (file)
@@ -21,6 +21,9 @@
  ***************************************************************************/
 
 #include "curl_setup.h"
+
+#include <curl/curl.h>
+
 #include "strcase.h"
 
 /* Portable, consistent toupper (remember EBCDIC). Do not use toupper() because