Declare class variables the right way.
[ruby-esmart.git] / src / rb_esmart.h
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