Skip to content

Commit

Permalink
Merge pull request #702 from monaka/pr-check-cdump-with-disable-stdio
Browse files Browse the repository at this point in the history
Add check for using cdump with DISABLE_STDIO option.
  • Loading branch information
matz committed Jan 8, 2013
2 parents c8d117f + 068cbef commit 0f98227
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/mruby/cdump.h
Expand Up @@ -12,7 +12,11 @@ extern "C" {
#endif

#include "mruby.h"
#include <stdio.h>
#ifdef DISABLE_STDIO
# error "Configuration conflict. Can't use with DISABLE_STDIO option."
#else
# include <stdio.h>
#endif

int mrb_cdump_irep(mrb_state *mrb, int n, FILE *f,const char *initname);

Expand Down

0 comments on commit 0f98227

Please sign in to comment.