bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C99 feature in loadapi.c


From: Gisle Vanem
Subject: C99 feature in loadapi.c
Date: Mon, 22 Sep 2014 11:53:22 +0200

The commit
 
http://git.savannah.gnu.org/cgit/make.git/commit/?id=562344122f3a3327ca4e285f203355857c4a25ff

breaks MSVC v16 build because of the C99 feature of 'declaration after code'.
Can you please apply this diff?

---Git-Latest/loadapi.c     2014-09-21 16:21:17 +0000
+++ loadapi.c   2014-09-22 11:42:06 +0000
@@ -42,10 +42,11 @@
  /* Preserve existing variable buffer context.  */
  char *pbuf;
  unsigned int plen;
+  char *s;

  install_variable_buffer (&pbuf, &plen);

-  char *s = xstrdup (buffer);
+  s = xstrdup (buffer);
  eval_buffer (s, floc);
  free (s);

-----------

--gv



reply via email to

[Prev in Thread] Current Thread [Next in Thread]