summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-18 05:10:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-18 05:10:52 +0000
commit0f0c32f24e9556cf3d605df2891841659e6293f6 (patch)
treed8120fdd026402a40f915ac68c1ff92b5c032965 /internal.h
parentecd2c08a4c8f9e3881d93131456d3ff066bc5de1 (diff)
mjit.c: no va_copy
* mjit.c (form_args): do not use va_copy, which cannot detect appropriate way to simulate when cross compiling. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/internal.h b/internal.h
index 3ca1352505..ff7a89a2e4 100644
--- a/internal.h
+++ b/internal.h
@@ -85,25 +85,6 @@ extern "C" {
# define STATIC_ASSERT(name, expr) typedef int static_assert_##name##_check[1 - 2*!(expr)]
#endif
-#if defined(HAVE_VA_COPY)
-/* OK, nothing to do */
-#elif defined(HAVE_VA_COPY_MACRO)
-#define va_copy(dst, src) VA_COPY((dst), (src))
-#elif defined(HAVE___VA_COPY)
-#define va_copy(dst, src) __va_copy((dst), (src))
-#elif defined(HAVE___BUILTIN_VA_COPY)
-#define va_copy(dst, src) __builtin_va_copy((dst), (src))
-#elif defined(HAVE_VA_COPY_VIA_STRUCT_ASSIGNMENT)
-#define va_copy(dst, src) do (dst) = (src); while (0)
-#elif defined(HAVE_VA_COPY_VIA_POINTER_ASSIGNMENT)
-#define va_copy(dst, src) do *(dst) = *(src); while (0)
-#elif defined(HAVE_VA_COPY_VIA_MEMCPY)
-#include <string.h>
-#define va_copy(dst, src) memcpy(&(dst), &(src), sizeof(va_list))
-#else
-#error >>>> no way to simuate va_copy <<<<
-#endif
-
#define SIGNED_INTEGER_TYPE_P(int_type) (0 > ((int_type)0)-1)
#define SIGNED_INTEGER_MAX(sint_type) \
(sint_type) \