aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32-fd-t.inc.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix API break.NIIBE Yutaka2022-04-051-0/+15
| | | | | | | | | | | | | * src/posix-fd-t.inc.h (assuan_fd_from_posix_fd): Revert. * src/w32-fd-t.inc.h (assuan_fd_from_posix_fd): Revert. * src/system-w32.c (assuan_fd_from_posix_fd): Revert. -- Note that assuan_fd_from_posix_fd is exposed inline function. Fixes-commit: 28a40a298661877e1bbeb3eb9ac58a85bdd85b02 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Fix assuan_socket_connect_fd to be usable.NIIBE Yutaka2022-04-041-15/+0
| | | | | | | | | | | | | | | | | | | | | | * src/assuan.h.in (assuan_socket_connect_fd): Second arg assuan_fd_t. * src/assuan-socket-connect.c (assuan_socket_connect_fd): Second arg should be an object of type SOCKET. * src/posix-fd-t.inc.h (assuan_fd_from_posix_fd): Remove. * src/w32-fd-t.inc.h (assuan_fd_from_posix_fd): Move to... * src/system-w32.c (assuan_fd_from_posix_fd): ... here. -- On Windows, when an application has an already-connected socket, it must be an object of type SOCKET. In this case, it is wrong to use _get_osfhandle. This does not constitute any ABI/API change for POSIX system. This is an API change for Windows, as assuan_fd_t on Windows is pointer type, but it's a fix from non-correctly-usable API. Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Fix bad-function-cast warning.Werner Koch2019-11-271-0/+7
| | | | | | | | | | | | | * src/w32-fd-t.inc.h (assuan_fd_from_posix_fd): Avoid compiler warning. -- The actual warning was: warning: cast from function call of type 'intptr_t' {aka 'int'} to non-matching type 'void *' [-Wbad-function-cast] return (assuan_fd_t)(HANDLE) _get_osfhandle (fd); Signed-off-by: Werner Koch <[email protected]>
* Add an SPDX tag to all core files.Werner Koch2017-11-151-0/+1
| | | | --
* Changes to allow building the CE version with MSC.Werner Koch2010-11-011-1/+1
|
* Removed sysdep stuff from assuan.h.Werner Koch2010-04-061-0/+39
fixed a problem for W32CE and Pth.