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

ruby-changes:45389

From: nobu <ko1@a...>
Date: Mon, 30 Jan 2017 13:54:57 +0900 (JST)
Subject: [ruby-changes:45389] nobu:r57462 (trunk): fix up r57461

nobu	2017-01-30 13:54:52 +0900 (Mon, 30 Jan 2017)

  New Revision: 57462

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57462

  Log:
    fix up r57461
    
    * internal.h: Microsoft Visual C++ has never supported C99 yet,
      even in 2017.

  Modified files:
    trunk/internal.h
Index: internal.h
===================================================================
--- internal.h	(revision 57461)
+++ internal.h	(revision 57462)
@@ -29,10 +29,13 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/internal.h#L29
 
 #ifndef __bool_true_false_are_defined
 # ifndef __cplusplus
-#  error :FIXME: You are the first one who use pre-C99 compiler.
-#  error :FIXME: Please add appropriate definition here.
-#  error :FIXME: This part is intentionally left undefined,
-#  error :FIXME: because the author no longer have such environment.
+#  undef bool
+#  undef false
+#  undef true
+#  define bool signed char
+#  define false 0
+#  define true 1
+#  define __bool_true_false_are_defined 1
 # endif
 #endif
 

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

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