Browse Source

* add comment to size_t definition. Documents issue #22834 a bit.

git-svn-id: trunk@22615 -
marco 13 năm trước cách đây
mục cha
commit
b0a984086f
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      rtl/win/sockets.pp

+ 5 - 0
rtl/win/sockets.pp

@@ -22,6 +22,11 @@ Interface
      winsock2,ctypes;
 
 Type
+  // the common socket functions are defined as size_t.
+  // without defining them for Windows this way, the 
+  // sockets unit is not crossplatform. This is not a mistake
+  // wrt 64-bit, the types are "INT" in the headers.
+  // Mantis #22834
   size_t  = cuint32;
   ssize_t = cint32;
   tsocklen= cint;