mruby-exit/exit.c: add fallback definition of constants.

- EXIT_SUCCESS
- EXIT_FAILURE
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-09-02 18:02:06 +09:00
parent 9f47f11abd
commit bf16315b70
+8
View File
@@ -1,6 +1,14 @@
#include <stdlib.h>
#include <mruby.h>
#ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
#endif
#ifndef EXIT_FAILURE
# define EXIT_FAILURE 1
#endif
static mrb_value
f_exit(mrb_state *mrb, mrb_value self)
{