znalazłem tą stronę z skąd wziąłem fragment kodu
#define progress_callback (fp, dltotal, dlnow, ultotal, ulnow){
if(-1 == fprintf (fp, "Bytes Received: %d\n", int(dlnow))){
return -1;}
if(dltotal>0.0)
{
if (-1 == fprintf (fp, "Percent Received: %g\n",
dlnow/dltotal * 100.0))
return -1;
}
return 0;
}
return 0;
}
i wywala mi błąd same syntax error