On 10/14/2012 01:21 PM, Michael Goffioul wrote:
Hi,

I get a compilation failure in canonicalize.c due to unsupported C99 feature in 
MSVC, namely the ability to define variables anywhere in C code. Is is possible 
to swap lines 102 and 103 in that file? That is:

   91 char *
   92 canonicalize_filename_mode (const char *name, canonicalize_mode_t 
can_mode)
   93 {
   94   char *rname, *dest, *extra_buf = NULL;
   95   char const *start;
   96   char const *end;
   97   char const *rname_limit;
   98   size_t extra_len = 0;
   99   Hash_table *ht = NULL;
  100   int saved_errno;
  101   int can_flags = can_mode & ~CAN_MODE_MASK;
  102   can_mode &= CAN_MODE_MASK;
  103   bool logical = can_flags & CAN_NOLINKS;
  104   /* Perhaps in future we might support CAN_NOALLOC with CAN_NOLINKS.  */

moving "logical" definition with the rest of the variables.

Oops, my fault.
I fixed that now.

thanks!
Pádraig.

Reply via email to