[前][次][番号順一覧][スレッド一覧]

ruby-changes:24005

From: shyouhei <ko1@a...>
Date: Wed, 13 Jun 2012 15:18:13 +0900 (JST)
Subject: [ruby-changes:24005] shyouhei:r36056 (trunk): * configure.in: On Windows platforms, system provided headers are

shyouhei	2012-06-13 15:16:46 +0900 (Wed, 13 Jun 2012)

  New Revision: 36056

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36056

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 36055)
+++ configure.in	(revision 36056)
@@ -610,10 +610,19 @@
 	RUBY_APPEND_OPTION(LDFLAGS, -fstack-protector)
     fi
 
-    # 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)
+    AS_CASE(["$target_os"],[mingw*], [
+      # 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.
+    ],
+    [
+      # 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
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36055)
+++ ChangeLog	(revision 36056)
@@ -1,3 +1,11 @@
+Wed Jun 13 15:12:07 2012  URABE Shyouhei  <shyouhei@r...>
+
+	* 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@r...>
 
 	* include/ruby/win32.h: get rid of C99 style one line comments.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]