diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-12 13:31:11 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-12 13:31:11 +0000 |
| commit | dccf22c7820bea4c6e04f46e9320bfa94e61e8c4 (patch) | |
| tree | 13a1119170420eb05b88a98b89aa0a42639ad233 /win32 | |
| parent | 0b2c95c77aa541fdd5ea02dcca9de7122f6c4936 (diff) | |
| download | ruby-dccf22c7820bea4c6e04f46e9320bfa94e61e8c4.tar.gz ruby-dccf22c7820bea4c6e04f46e9320bfa94e61e8c4.tar.xz ruby-dccf22c7820bea4c6e04f46e9320bfa94e61e8c4.zip | |
* win32/Makefile.sub (WARNFLAGS): warning 4996 is only in VC++8 or
later.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/Makefile.sub | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index f6b757d50..37f9a8236 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -159,7 +159,11 @@ RUNTIMEFLAG = -MD COMPILERFLAG = -Zm600 !endif !if !defined(WARNFLAGS) +!if $(MSC_VER) >= 1400 WARNFLAGS = -W2 -wd4996 +!else +WARNFLAGS = -W2 +!endif !endif !if !defined(CFLAGS) CFLAGS = $(RUNTIMEFLAG) $(DEBUGFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG) $(COMPILERFLAG) |
