瀏覽代碼

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

git-svn-id: trunk@29642 -
Károly Balogh 10 年之前
父節點
當前提交
351fe07d90
共有 1 個文件被更改,包括 12 次插入1 次删除
  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}