Browse Source

* enable libcurl for windows (win32/win64)
* patch by Thaddy de Koning to fix teststream.pp, resolves #28436

git-svn-id: trunk@31260 -

florian 10 years ago
parent
commit
87ca4bd252
2 changed files with 2 additions and 2 deletions
  1. 1 1
      packages/libcurl/examples/teststream.pp
  2. 1 1
      packages/libcurl/fpmake.pp

+ 1 - 1
packages/libcurl/examples/teststream.pp

@@ -21,7 +21,7 @@
 {$H+}
 {$H+}
 program teststream;
 program teststream;
 
 
-uses classes,libcurl,unixtype;
+uses classes,libcurl,{$ifdef windows}ctypes{$else}unixtype{$endif};
 
 
 Function DoWrite(Ptr : Pointer; Size : size_t; nmemb: size_t; Data : Pointer) : size_t;cdecl;
 Function DoWrite(Ptr : Pointer; Size : size_t; nmemb: size_t; Data : Pointer) : size_t;cdecl;
 
 

+ 1 - 1
packages/libcurl/fpmake.pp

@@ -21,7 +21,7 @@ begin
     P.Author := 'Library: Daniel Stenberg, header: Free Pascal development team';
     P.Author := 'Library: Daniel Stenberg, header: Free Pascal development team';
     P.License := 'Library: MIT, header: LGPL with modification, ';
     P.License := 'Library: MIT, header: LGPL with modification, ';
     P.HomepageURL := 'www.freepascal.org';
     P.HomepageURL := 'www.freepascal.org';
-    P.OSes := [beos,haiku,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,linux,aix,dragonfly];
+    P.OSes := [beos,haiku,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,linux,aix,dragonfly,win32,win64];
     P.Email := '';
     P.Email := '';
     P.Description := 'Library to fetch files from URLs using many protocols.';
     P.Description := 'Library to fetch files from URLs using many protocols.';
     P.NeedLibC:= true;  // true for headers that indirectly link to libc?
     P.NeedLibC:= true;  // true for headers that indirectly link to libc?