summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-13 08:04:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-13 08:04:11 +0000
commitb4bfc3aa79dfd89cbd51cd70cbc4eee199000955 (patch)
tree856b4d5e92493317904d03f25eb8576cb4ede103 /include/ruby
parent1f46af14e48e2bcd86e02ac015b985f9841d1189 (diff)
* include/ruby/ruby.h (bool): not define to get rid of conflict
against curses. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/ruby.h26
1 files changed, 2 insertions, 24 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index b4a0011682..301a68f900 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -309,28 +309,6 @@ enum ruby_special_consts {
RUBY_SPECIAL_SHIFT = 8
};
-#if defined HAVE_STDBOOL_H
-# include <stdbool.h>
-#elif defined __cplusplus
-typedef bool _Bool;
-#else
-# ifndef HAVE__BOOL
-# define _Bool signed char
-# endif
-# ifndef bool
-# define bool _Bool
-# endif
-# ifndef false
-# define false 0
-# endif
-# ifndef true
-# define true 1
-# endif
-# ifndef __bool_true_false_are_defined
-# define __bool_true_false_are_defined 1
-# endif
-#endif
-
#define Qfalse ((VALUE)RUBY_Qfalse)
#define Qtrue ((VALUE)RUBY_Qtrue)
#define Qnil ((VALUE)RUBY_Qnil)
@@ -1171,8 +1149,8 @@ rb_type(VALUE obj)
static inline int
rb_special_const_p(VALUE obj)
{
- if (SPECIAL_CONST_P(obj)) return true;
- return false;
+ if (SPECIAL_CONST_P(obj)) return (int)Qtrue;
+ return (int)Qfalse;
}
#include "ruby/missing.h"