[前][次][番号順一覧][スレッド一覧]

ruby-changes:57364

From: Nobuyoshi <ko1@a...>
Date: Wed, 28 Aug 2019 16:52:15 +0900 (JST)
Subject: [ruby-changes:57364] Nobuyoshi Nakada: b11d739444 (master): Fix warnings

https://git.ruby-lang.org/ruby.git/commit/?id=b11d739444

From b11d739444e312e3284dc5daf8354a3067606f2d Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 28 Aug 2019 16:40:57 +0900
Subject: Fix warnings

`_FILE_OFFSET_BITS` should be defined before system headers.

diff --git a/ruby-runner.c b/ruby-runner.c
index c991178..d41ba27 100644
--- a/ruby-runner.c
+++ b/ruby-runner.c
@@ -1,4 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ruby-runner.c#L1
 #define _POSIX_C_SOURCE 200809L
+#include "ruby/config.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -7,7 +8,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby-runner.c#L8
 #include <sys/stat.h>
 
 #include "ruby-runner.h"
-#include "ruby/config.h"
 
 #ifdef MAKE_MJIT_BUILD_DIR
 const char MJIT_HEADER[] = BUILDDIR "/" MJIT_MIN_HEADER;
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]