summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'class.c')
-rw-r--r--class.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/class.c b/class.c
index 5dcdcf6c0f..4048305491 100644
--- a/class.c
+++ b/class.c
@@ -15,10 +15,6 @@
#include "st.h"
#include <ctype.h>
-#ifdef USE_CWGUSI
-#include <stdio.h>
-#endif
-
extern st_table *rb_class_tbl;
VALUE
@@ -511,6 +507,7 @@ rb_singleton_class(obj)
VALUE obj;
{
VALUE klass;
+
if (rb_special_const_p(obj)) {
rb_raise(rb_eTypeError, "can't define singleton");
}