X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e8e56a5fff37ca30d8cb94b30a1df3709e521fed..9d1a487722431c76f5861a1490d9469de8af8f7e:/src/simix/smx_context.c diff --git a/src/simix/smx_context.c b/src/simix/smx_context.c index 59846bae96..70a41babaf 100644 --- a/src/simix/smx_context.c +++ b/src/simix/smx_context.c @@ -11,14 +11,21 @@ #include "xbt/swag.h" #include "private.h" #include -#include -#include "smx_context_ruby.c" -#define HAVE_RUBY /* HACK HACK */ -// #define DEBUG #ifdef HAVE_RUBY - extern void SIMIX_ctx_ruby_factory_init(smx_context_factory_t *factory); +/* Damn Ruby. They load their full config.h, which breaks since we also load ours. + * So, we undef the offending defines + */ +#undef PACKAGE_VERSION +#undef PACKAGE_NAME +#undef PACKAGE_TARNAME +#undef PACKAGE_STRING +#undef PACKAGE_BUGREPORT +#undef _GNU_SOURCE +#include + void SIMIX_ctx_ruby_factory_init(smx_context_factory_t *factory); +#include "smx_context_ruby.c" #endif XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_context, simix, "Context switching mecanism");