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

ruby-changes:24420

From: naruse <ko1@a...>
Date: Fri, 20 Jul 2012 03:43:37 +0900 (JST)
Subject: [ruby-changes:24420] naruse:r36471 (trunk): * thread_pthread.c: use #ifdef, not #if.

naruse	2012-07-20 03:43:24 +0900 (Fri, 20 Jul 2012)

  New Revision: 36471

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36471

  Log:
    * thread_pthread.c: use #ifdef, not #if.

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36470)
+++ ChangeLog	(revision 36471)
@@ -1,3 +1,7 @@
+Fri Jul 20 03:42:54 2012  NARUSE, Yui  <naruse@r...>
+
+	* thread_pthread.c: use #ifdef, not #if.
+
 Thu Jul 19 15:08:40 2012  Koichi Sasada  <ko1@a...>
 
 	* thread.c (rb_thread_s_control_interrupt,
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 36470)
+++ thread_pthread.c	(revision 36471)
@@ -24,7 +24,7 @@
 #elif HAVE_SYS_FCNTL_H
 #include <sys/fcntl.h>
 #endif
-#if HAVE_SYS_PRCTL_H
+#ifdef HAVE_SYS_PRCTL_H
 #include <sys/prctl.h>
 #endif
 #if defined(__native_client__) && defined(NACL_NEWLIB)
@@ -1430,7 +1430,7 @@
 int
 rb_reserved_fd_p(int fd)
 {
-#if USE_SLEEPY_TIMER_THRAED
+#ifdef USE_SLEEPY_TIMER_THRAED
     if (fd == timer_thread_pipe[0] ||
 	fd == timer_thread_pipe[1]) {
 	return 1;

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

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