aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-handler.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-06-19 11:29:18 +0000
committerWerner Koch <[email protected]>2013-06-19 11:29:18 +0000
commit6ba18ca32c8669fa76cc10de3382f78212ca51a8 (patch)
tree5f380a9a829d26ca4fff42a2e03d6fb7f3afff9c /src/assuan-handler.c
parentAdd hack to have different names for 64 bit Windows DLLs. (diff)
downloadlibassuan-6ba18ca32c8669fa76cc10de3382f78212ca51a8.tar.gz
libassuan-6ba18ca32c8669fa76cc10de3382f78212ca51a8.zip
Changes to support W64.
* configure.ac (have_dosish_system): Set for W64. * src/assuan-defs.h (SOCKET2HANDLE, HANDLE2SOCKET): Add versions for W64. * src/assuan-handler.c (assuan_command_parse_fd) [W64]: Use strtoull to parse an FD. -- Note that these changes are not complete but merely sufficient to allow building of GpgEX.
Diffstat (limited to 'src/assuan-handler.c')
-rw-r--r--src/assuan-handler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/assuan-handler.c b/src/assuan-handler.c
index dca5968..2fa91b8 100644
--- a/src/assuan-handler.c
+++ b/src/assuan-handler.c
@@ -271,9 +271,9 @@ assuan_command_parse_fd (assuan_context_t ctx, char *line, assuan_fd_t *rfd)
line ++;
if (!digitp (*line))
return set_error (ctx, GPG_ERR_ASS_SYNTAX, "number required");
-#ifdef HAVE_W32_SYSTEM
- /* Fixme: For a W32/64bit system we will need to change the cast
- and the conversion function. */
+#if HAVE_W64_SYSTEM
+ *rfd = (void*)strtoull (line, &endp, 10);
+#elif HAVE_W32_SYSTEM
*rfd = (void*)strtoul (line, &endp, 10);
#else
*rfd = strtoul (line, &endp, 10);