* configure.in: On Windows platforms, system provided headers are
VC++ optimized. That is, C++ habits are often contaminated into various headers. Most frequent situation is the use of // comments. We bypass ANSI C mode for them. Otherwise extension libs cannot include those headers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
24b9cf95e0
commit
43bc8f9beb
@ -1,3 +1,11 @@
|
|||||||
|
Wed Jun 13 15:12:07 2012 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||||
|
|
||||||
|
* configure.in: On Windows platforms, system provided headers are
|
||||||
|
VC++ optimized. That is, C++ habits are often contaminated into
|
||||||
|
various headers. Most frequent situation is the use of //
|
||||||
|
comments. We bypass ANSI C mode for them. Otherwise extension
|
||||||
|
libs cannot include those headers.
|
||||||
|
|
||||||
Wed Jun 13 13:39:23 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Jun 13 13:39:23 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* include/ruby/win32.h: get rid of C99 style one line comments.
|
* include/ruby/win32.h: get rid of C99 style one line comments.
|
||||||
|
17
configure.in
17
configure.in
@ -610,10 +610,19 @@ if test "$GCC" = yes; then
|
|||||||
RUBY_APPEND_OPTION(LDFLAGS, -fstack-protector)
|
RUBY_APPEND_OPTION(LDFLAGS, -fstack-protector)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ANSI (no XCFLAGS because this is C only)
|
AS_CASE(["$target_os"],[mingw*], [
|
||||||
RUBY_TRY_CFLAGS(-ansi -std=iso9899:199409, [
|
# On Windows platforms, system provided headers are VC++
|
||||||
RUBY_APPEND_OPTION(warnflags, -ansi -std=iso9899:199409)
|
# optimized. That is, C++ habits are often contaminated into
|
||||||
RUBY_APPEND_OPTION(rb_cv_warnflags, -ansi -std=iso9899:199409)
|
# various headers. Most frequent situation is the use of //
|
||||||
|
# comments. We bypass ANSI C mode for them. Otherwise
|
||||||
|
# extension libs cannot include those headers.
|
||||||
|
],
|
||||||
|
[
|
||||||
|
# ANSI (no XCFLAGS because this is C only)
|
||||||
|
RUBY_TRY_CFLAGS(-ansi -std=iso9899:199409, [
|
||||||
|
RUBY_APPEND_OPTION(warnflags, -ansi -std=iso9899:199409)
|
||||||
|
RUBY_APPEND_OPTION(rb_cv_warnflags, -ansi -std=iso9899:199409)
|
||||||
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
# suppress annoying -Wstrict-overflow warnings
|
# suppress annoying -Wstrict-overflow warnings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user