* win32/win32.c (NtCmdGlob): avoid VC++ warning.

* lib/mkmf.rb: add -I$(srcdir) to CPPFLAGS.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2001-08-15 18:51:58 +00:00
parent 6ce3130067
commit e5de410caf
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Thu Aug 16 03:50:33 2001 Usaku Nakamura <usa@ruby-lang.org>
* win32/win32.c (NtCmdGlob): avoid VC++ warning.
* lib/mkmf.rb: add -I$(srcdir) to CPPFLAGS.
Wed Aug 15 04:59:15 2001 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/*/extconf.rb: really fix so that they build from any

View File

@ -435,7 +435,7 @@ VPATH = $(srcdir)
CC = #{CONFIG["CC"]}
CFLAGS = #{CONFIG["CCDLFLAGS"]} #{CFLAGS} #{$CFLAGS}
CPPFLAGS = -I$(hdrdir) -I#{CONFIG["includedir"]} #{$defs.join(" ")} #{CONFIG["CPPFLAGS"]} #{$CPPFLAGS}
CPPFLAGS = -I$(hdrdir) -I$(srcdir) -I#{CONFIG["includedir"]} #{$defs.join(" ")} #{CONFIG["CPPFLAGS"]} #{$CPPFLAGS}
CXXFLAGS = $(CFLAGS)
DLDFLAGS = #{$DLDFLAGS} #{$LDFLAGS}
LDSHARED = #{CONFIG["LDSHARED"]} #{defflag}

View File

@ -1005,7 +1005,7 @@ NtCmdGlob (NtCmdLineElement *patt)
for (p = buf; *p; p = CharNext(p))
if (*p == '\\')
*p = '/';
rb_globi(buf, insert, (VALUE)&listinfo);
rb_globi(buf, (void (*) _((const char*, VALUE)))insert, (VALUE)&listinfo);
if (buf != buffer)
free(buf);