The only file I had trouble compiling with MSVC v16 (Visual Studio
2010 Express), was forbidden.c. Du to the C89 (?) feature of data in 
the middle of the code:

    regex_t *regex;

    if(rlen > 0) {

Can you please accept this patch for MSVC:

--- Git-latest/forbidden.c   2013-12-11 22:16:02 +0000
+++ forbidden.c 2014-08-19 21:36:21 +0000
@@ -199,6 +199,7 @@
                 DomainPtr **domains_return, regex_t **regex_return)
 {
     struct stat ss;
+    regex_t *regex;
     int rc;

     if(*domains_return) {
@@ -273,8 +274,6 @@
         domains = NULL;
     }

-    regex_t *regex;
-
     if(rlen > 0) {
         regex = malloc(sizeof(regex_t));
         rc = regcomp(regex, regexbuf, REG_EXTENDED | REG_NOSUB);

-----------------------

--gv


------------------------------------------------------------------------------
_______________________________________________
Polipo-users mailing list
Polipo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to