From ba5264e72b4034e554a863277ef25dbd237ffbfd Mon Sep 17 00:00:00 2001 From: Dirkjan Bussink Date: Wed, 4 Sep 2013 20:15:56 +0200 Subject: [PATCH] Define RSTRING_NOT_MODIFIED for Rubinius performance This ensures the header is defined before ruby.h is included. --- ext/puma_http11/http11_parser.h | 1 + ext/puma_http11/io_buffer.c | 1 + ext/puma_http11/mini_ssl.c | 1 + 3 files changed, 3 insertions(+) diff --git a/ext/puma_http11/http11_parser.h b/ext/puma_http11/http11_parser.h index b9433a43..c4ce4786 100644 --- a/ext/puma_http11/http11_parser.h +++ b/ext/puma_http11/http11_parser.h @@ -6,6 +6,7 @@ #ifndef http11_parser_h #define http11_parser_h +#define RSTRING_NOT_MODIFIED 1 #include "ruby.h" #include diff --git a/ext/puma_http11/io_buffer.c b/ext/puma_http11/io_buffer.c index 9b78048d..0fb97bc5 100644 --- a/ext/puma_http11/io_buffer.c +++ b/ext/puma_http11/io_buffer.c @@ -1,3 +1,4 @@ +#define RSTRING_NOT_MODIFIED 1 #include "ruby.h" #include diff --git a/ext/puma_http11/mini_ssl.c b/ext/puma_http11/mini_ssl.c index 784ab18a..299c7d5f 100644 --- a/ext/puma_http11/mini_ssl.c +++ b/ext/puma_http11/mini_ssl.c @@ -1,3 +1,4 @@ +#define RSTRING_NOT_MODIFIED 1 #include #include #include