[Groonga-commit] groonga/groonga at 27743ad [master] mrb mrb_ctx.h: If it disables --enable-mruby, mrb_state type doesn't exist in this scope.

Zurück zum Archiv-Index

cosmo0920 null+****@clear*****
Sat Sep 13 00:57:55 JST 2014


cosmo0920	2014-09-13 00:57:55 +0900 (Sat, 13 Sep 2014)

  New Revision: 27743ad8aee52ba9103477eda117f1af004362e6
  https://github.com/groonga/groonga/commit/27743ad8aee52ba9103477eda117f1af004362e6

  Merged 59b2229: Merge pull request #200 from cosmo0920/mrb-ctx-ifdef-block

  Message:
    mrb mrb_ctx.h: If it disables --enable-mruby, mrb_state type doesn't exist in this scope.
    
    It generates following error:
    ```log
    CC       ctx_impl_mrb.lo
    In file included from ctx_impl_mrb.c:26:
    ./mrb/mrb_ctx.h:29:24: error: unknown type name 'mrb_state'
    void grn_mrb_ctx_check(mrb_state *mrb);
                             ^
    1 error generated.
    make[4]: *** [ctx_impl_mrb.lo] Error 1
    make[3]: *** [all-recursive] Error 1
    make[2]: *** [all] Error 2
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
    ```

  Modified files:
    lib/mrb/mrb_ctx.h

  Modified: lib/mrb/mrb_ctx.h (+2 -0)
===================================================================
--- lib/mrb/mrb_ctx.h    2014-09-12 23:34:57 +0900 (5916935)
+++ lib/mrb/mrb_ctx.h    2014-09-13 00:57:55 +0900 (5068d0d)
@@ -26,7 +26,9 @@ extern "C" {
 #endif
 
 void grn_mrb_ctx_init(grn_ctx *ctx);
+#ifdef GRN_WITH_MRUBY
 void grn_mrb_ctx_check(mrb_state *mrb);
+#endif
 
 #ifdef __cplusplus
 }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index