Declare class variables the right way.
authorTilman Sauerbeck <tilman@code-monkey.de>
Mon, 26 Jul 2004 10:56:48 +0000 (10:56 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Mon, 26 Jul 2004 10:56:48 +0000 (10:56 +0000)
src/rb_esmart.c
src/rb_esmart.h

index 11d816f5d9b64d1df192760cf33a23e8eee871bf..46aa0905c231a1f1955368b64b8ec3e9c4e8401f 100644 (file)
@@ -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)
  *
 
 #include <ruby.h>
 
+#define __RB_ESMART_C
 #include "rb_esmart.h"
 
+VALUE mEsmart;
+
 void Init_esmart (void)
 {
        rb_require ("evas");
index e359419e08166ec572b989fb48eac4eb0acbfe9d..a4bcb29324469dc63db8fa2019eaf403a4fdb0dd 100644 (file)
@@ -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