diff options
| author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-04 07:43:20 +0000 |
|---|---|---|
| committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-04 07:43:20 +0000 |
| commit | 8a0678b4c3120196321c4d4670b13ed099183dca (patch) | |
| tree | 5fea1e2deb167f81cb58f00b6c34e7f852ec36dc | |
| parent | 4342fd3d97f4a43e202e989231f69b5b9e1e7af3 (diff) | |
mjit.c: try porting va_copy
for non C99 conforming environments.
The behavior of this macro is undefined, but I heard this works on many
architectures. Let me check the Ruby CI result with this change.
(My Windows environment has only Visual Studio 2015 and va_copy is
provided in it...)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | mjit.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -113,6 +113,10 @@ extern int rb_thread_create_mjit_thread(void (*child_hook)(void), void (*worker_ typedef intptr_t pid_t; #endif +#ifndef va_copy +#define va_copy(dest, src) ((dest) = (src)) +#endif + /* A copy of MJIT portion of MRI options since MJIT initialization. We need them as MJIT threads still can work when the most MRI data were freed. */ |
