summaryrefslogtreecommitdiff
path: root/internal/stdbool.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal/stdbool.h')
-rw-r--r--internal/stdbool.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/internal/stdbool.h b/internal/stdbool.h
new file mode 100644
index 0000000000..4c103b43ce
--- /dev/null
+++ b/internal/stdbool.h
@@ -0,0 +1,20 @@
+#ifndef INTERNAL_STDBOOL_H /* -*- C -*- */
+#define INTERNAL_STDBOOL_H
+/**
+ * @file
+ * @brief Thin wrapper to <stdbool.h>
+ * @author \@shyouhei
+ * @copyright This file is a part of the programming language Ruby.
+ * Permission is hereby granted, to either redistribute and/or
+ * modify this file, provided that the conditions mentioned in the
+ * file COPYING are met. Consult the file for details.
+ */
+#include "ruby/config.h" /* for HAVE_STDBOOL_H */
+
+#ifdef HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+# include "missing/stdbool.h"
+#endif
+
+#endif /* INTERNAL_STDBOOL_H */