ruby-changes:52424
From: nobu <ko1@a...>
Date: Wed, 5 Sep 2018 08:10:22 +0900 (JST)
Subject: [ruby-changes:52424] nobu:r64633 (trunk): random.c: fix up r64596
nobu 2018-09-05 08:10:17 +0900 (Wed, 05 Sep 2018) New Revision: 64633 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64633 Log: random.c: fix up r64596 * random.c (fill_random_bytes_syscall): check if the version macro is defined, for very old Mac OS X development tools. Modified files: trunk/random.c Index: random.c =================================================================== --- random.c (revision 64632) +++ random.c (revision 64633) @@ -470,7 +470,7 @@ fill_random_bytes_urandom(void *seed, si https://github.com/ruby/ruby/blob/trunk/random.c#L470 #endif #if 0 -#elif defined __APPLE__ && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 +#elif defined MAC_OS_X_VERSION_10_7 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7 #include <Security/Security.h> static int -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/