aboutsummaryrefslogtreecommitdiffstats
path: root/regint.h
diff options
context:
space:
mode:
authorSergey Fedorov <vital.had@gmail.com>2022-10-19 18:49:45 +0800
committerGitHub <noreply@github.com>2022-10-19 23:49:45 +1300
commit567725ed303b6738493c80efaf93dc4c1e65a9c9 (patch)
tree75f141047050eee63c05d613491595a7a9380afa /regint.h
parentfc3137ef54562c3c3290245c0f62e0bb193c3145 (diff)
downloadruby-567725ed303b6738493c80efaf93dc4c1e65a9c9.tar.gz
Fix and improve coroutines for Darwin (macOS) ppc/ppc64. (#5975)
Diffstat (limited to 'regint.h')
-rw-r--r--regint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/regint.h b/regint.h
index 6c88f278c1..00b4b6ed9b 100644
--- a/regint.h
+++ b/regint.h
@@ -49,10 +49,11 @@
# endif
#endif
+/* __POWERPC__ added to accommodate Darwin case. */
#ifndef UNALIGNED_WORD_ACCESS
# if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || \
- defined(__powerpc64__) || defined(__aarch64__) || \
+ defined(__powerpc64__) || defined(__POWERPC__) || defined(__aarch64__) || \
defined(__mc68020__)
# define UNALIGNED_WORD_ACCESS 1
# else