Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sanitize the includes of context objects declarations (was dupplicated and a bit...
[simgrid.git] / src / bindings / ruby_bindings.h
index 04b93c2..48821a9 100644 (file)
@@ -26,6 +26,8 @@
 #include "xbt/log.h"
 #include "xbt/asserts.h"
 
+#include "simix/smx_context_private.h"
+
 /* Damn Ruby. They load their full config.h, which breaks since we also load ours.
  * So, we undef the offending defines
  */
@@ -41,7 +43,7 @@
  * Context related stuff *
  * ********************* */
 typedef struct s_smx_ctx_ruby {
-  SMX_CTX_BASE_T;
+  s_smx_ctx_base_t super;  /* Fields of super implementation */
   VALUE process;   // The  Ruby Process Instance
   //...
 }s_smx_ctx_ruby_t,*smx_ctx_ruby_t;