[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] x64 fix

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-01-27 10:22:27 CET

Hi,

For TortoiseSVN, we have to compile Subversion on Windows also for x64
systems (the x64 explorer can't load 32-bit dll's, that's why we *must*
compile it on x64). But it's not possible to compile Subversion without
patching a file (which we do).

I thought it would be better to send this patch instead of us having to
patch a file for every x64 build.

Patch is attached (very small change).

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

[[[
Fix for compiling Subversion on x64.
* subversion/libsvn_subr/config_win.c : use apr_size_t instead of int
]]]
Index: subversion/libsvn_subr/config_win.c
===================================================================
--- subversion/libsvn_subr/config_win.c (revision 23249)
+++ subversion/libsvn_subr/config_win.c (working copy)
@@ -58,7 +58,7 @@
   if (style == APR_FILEPATH_ENCODING_UTF8)
     {
       WCHAR folder_ucs2[MAX_PATH];
- int inwords, outbytes, outlength;
+ apr_size_t inwords, outbytes, outlength;
       char *folder_utf8;
 
       if (S_OK != SHGetFolderPathW(NULL, csidl, NULL, SHGFP_TYPE_CURRENT,
@@ -114,7 +114,7 @@
 static svn_error_t *
 utf8_to_ucs2(WCHAR **ucs2, const char *utf8, apr_pool_t *pool)
 {
- int inbytes, outwords, outlength;
+ apr_size_t inbytes, outwords, outlength;
   apr_status_t apr_err;
 
   inbytes = lstrlenA(utf8);

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jan 27 10:22:44 2007

This is an archived mail posted to the Subversion Dev mailing list.