Browse Source

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

git-svn-id: trunk@29642 -
Károly Balogh 10 năm trước cách đây
mục cha
commit
351fe07d90
1 tập tin đã thay đổi với 12 bổ sung1 xóa
  1. 12 1
      packages/libcurl/src/libcurl.pp

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

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