From 1b56a6791ef0e24b38fb32678115fb83b174ef30 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Mon, 26 Jul 2004 10:49:51 +0000 Subject: [PATCH] Declare class variables the right way. --- src/rb_evas.c | 4 +++- src/rb_evas.h | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/rb_evas.c b/src/rb_evas.c index 029504a..1f72188 100644 --- a/src/rb_evas.c +++ b/src/rb_evas.c @@ -1,5 +1,5 @@ /* - * $Id: rb_evas.c 38 2004-07-25 11:27:25Z tilman $ + * $Id: rb_evas.c 43 2004-07-26 10:49:51Z tilman $ * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * @@ -22,10 +22,12 @@ #include +#define __RB_EVAS_C #include "rb_evas_main.h" #include "rb_evas.h" #include "rb_evas_object.h" +VALUE cEvas; static VALUE parents; static void c_mark (Evas **e) diff --git a/src/rb_evas.h b/src/rb_evas.h index 8e6488a..6f5359a 100644 --- a/src/rb_evas.h +++ b/src/rb_evas.h @@ -1,5 +1,5 @@ /* - * $Id: rb_evas.h 42 2004-07-25 16:08:00Z tilman $ + * $Id: rb_evas.h 43 2004-07-26 10:49:51Z tilman $ * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * @@ -21,7 +21,9 @@ #ifndef __RB_EVAS_H #define __RB_EVAS_H -VALUE cEvas; +#ifndef __RB_EVAS_C +extern VALUE cEvas; +#endif void Init_Evas (void); VALUE TO_EVAS (VALUE parent, Evas *e); -- 2.30.2