Mercurial > vim
comparison src/if_ruby.c @ 16338:366978ec2c03 v8.1.1174
patch 8.1.1174: cannot build with Ruby 1.8
commit https://github.com/vim/vim/commit/8dc4c7292364d31cfb8afa8a67984b78b657b192
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 14 19:42:13 2019 +0200
patch 8.1.1174: cannot build with Ruby 1.8
Problem: Cannot build with Ruby 1.8. (Tom G. Christensen)
Solution: Include ruby/st.h. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/4257)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Apr 2019 19:45:04 +0200 |
parents | cd5c83115ec6 |
children | f0f9692d4487 |
comparison
equal
deleted
inserted
replaced
16337:b8fb927a044c | 16338:366978ec2c03 |
---|---|
116 | 116 |
117 #include <ruby.h> | 117 #include <ruby.h> |
118 #ifdef RUBY19_OR_LATER | 118 #ifdef RUBY19_OR_LATER |
119 # include <ruby/encoding.h> | 119 # include <ruby/encoding.h> |
120 #endif | 120 #endif |
121 | 121 #ifndef RUBY19_OR_LATER |
122 #undef off_t /* ruby defines off_t as _int64, Mingw uses long */ | 122 # include <st.h> // for ST_STOP and ST_CONTINUE |
123 #endif | |
124 | |
125 #undef off_t // ruby defines off_t as _int64, Mingw uses long | |
123 #undef EXTERN | 126 #undef EXTERN |
124 #undef _ | 127 #undef _ |
125 | 128 |
126 /* T_DATA defined both by Ruby and Mac header files, hack around it... */ | 129 /* T_DATA defined both by Ruby and Mac header files, hack around it... */ |
127 #if defined(MACOS_X) | 130 #if defined(MACOS_X) |