From: Tilman Sauerbeck Date: Mon, 26 Jul 2004 10:56:48 +0000 (+0000) Subject: Declare class variables the right way. X-Git-Url: http://git.code-monkey.de/?p=ruby-esmart.git;a=commitdiff_plain;h=37ec21e31c18a61f072a4785a97182b06577f682 Declare class variables the right way. --- diff --git a/src/rb_esmart.c b/src/rb_esmart.c index 11d816f..46aa090 100644 --- a/src/rb_esmart.c +++ b/src/rb_esmart.c @@ -1,5 +1,5 @@ /* - * $Id: rb_esmart.c 36 2004-07-25 10:45:47Z tilman $ + * $Id: rb_esmart.c 44 2004-07-26 10:56:48Z tilman $ * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * @@ -20,8 +20,11 @@ #include +#define __RB_ESMART_C #include "rb_esmart.h" +VALUE mEsmart; + void Init_esmart (void) { rb_require ("evas"); diff --git a/src/rb_esmart.h b/src/rb_esmart.h index e359419..a4bcb29 100644 --- a/src/rb_esmart.h +++ b/src/rb_esmart.h @@ -1,5 +1,5 @@ /* - * $Id: rb_esmart.h 36 2004-07-25 10:45:47Z tilman $ + * $Id: rb_esmart.h 44 2004-07-26 10:56:48Z tilman $ * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * @@ -42,6 +42,8 @@ return Qnil; \ } -VALUE mEsmart; +#ifndef __RB_ESMART_C +extern VALUE mEsmart; +#endif #endif