Browse Source

libcurl: it's now possible to compile it for Windows

git-svn-id: trunk@29642 -
Károly Balogh 10 years ago
parent
commit
351fe07d90
1 changed files with 12 additions and 1 deletions
  1. 12 1
      packages/libcurl/src/libcurl.pp

+ 12 - 1
packages/libcurl/src/libcurl.pp

@@ -20,7 +20,18 @@ unit libcurl;
 
 interface
 
-uses unixtype;
+{$IFDEF WINDOWS}
+uses
+  ctypes;
+
+type
+  time_t = clong;
+  PTime_t = ^time_t;
+  off_t  = clong;
+{$ELSE}
+uses
+  unixtype;
+{$ENDIF}
 
 {$IFDEF FPC}
 {$PACKRECORDS C}