summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2024-04-29 03:03:50 +0200
committer卜部昌平 <shyouhei@ruby-lang.org>2024-04-29 03:03:50 +0200
commit17a0e2ac049d051f7c5af00d0a179d1b4efc3005 (patch)
treeabc98dd6991b5ee79af97862afa0d1ae82b8075d
parenta6308ca9589638c2efb791ac6858fdda8cb06c44 (diff)
workaround C++ compile error
We observe compiler error on FreeBSD. Their stdckdint.h does not understand C++. This shall be addressed on their side. Unti then we resport to our own version. https://rubyci.s3.amazonaws.com/freebsd14/ruby-master/log/20240427T143002Z.log.html.gz
-rw-r--r--include/ruby/internal/stdckdint.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ruby/internal/stdckdint.h b/include/ruby/internal/stdckdint.h
index d02530136e..33647a5a47 100644
--- a/include/ruby/internal/stdckdint.h
+++ b/include/ruby/internal/stdckdint.h
@@ -35,6 +35,13 @@
# define RBIMPL_HAVE_STDCKDINT_H
#endif
+#ifdef __cplusplus
+# /* It seems OS/Compiler provided stdckdint.h tend not support C++ yet.
+# * Situations could improve someday but in a meantime let us work around.
+# */
+# undef RBIMPL_HAVE_STDCKDINT_H
+#endif
+
#ifdef RBIMPL_HAVE_STDCKDINT_H
# /* Take that. */
# include <stdckdint.h>