1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/coroutine/universal/Context.h
Sergey Fedorov 539459abda
Ruby31: add support for Darwin ppc/ppc64 (#5927)
* add coroutines for ppc & ppc64

* fix universal coroutine to include ppc & ppc64

* add powerpc*-darwin to configure.ac

* fix thread_pthread for older systems
2022-05-22 15:02:03 +12:00

21 lines
593 B
C

#ifndef COROUTINE_UNIVERSAL_CONTEXT_H
#define COROUTINE_UNIVERSAL_CONTEXT_H 1
#if 0
#elif defined __x86_64__
# include "coroutine/amd64/Context.h"
#elif defined __i386__
# include "coroutine/x86/Context.h"
#elif defined __ppc__
# include "coroutine/ppc/Context.h"
#elif defined __ppc64__ && defined(WORDS_BIGENDIAN)
# include "coroutine/ppc64/Context.h"
#elif defined __ppc64__ && !defined(WORDS_BIGENDIAN)
# include "coroutine/ppc64le/Context.h"
#elif defined __arm64__
# include "coroutine/arm64/Context.h"
#else
# error "Unsupported CPU"
#endif
#endif /* COROUTINE_UNIVERSAL_CONTEXT_H */