shithub: puzzles

Download patch

ref: 32f96080ad2f1bf263e101c245f0332eed021d5a
parent: 7edbee6cb278b5278bf25065862b0950494a21ef
author: Josh Lee <jleedev@gmail.com>
date: Tue May 29 04:09:01 EDT 2018

Enable 64-bit osx build and fix a warning.

OS X is beginning to show a warning when a 32-bit application is
opened, so it's high time that this gets enabled. Fix a clang warning
exposed by this build.

--- a/.gitignore
+++ b/.gitignore
@@ -97,8 +97,10 @@
 /org
 /*.ppc
 /*.i386
+/*.x86_64
 /Puzzles.ppc.bin
 /Puzzles.i386.bin
+/Puzzles.x86_64.bin
 /version2.def
 /preprocessed.but
 /*.a
--- a/keen.c
+++ b/keen.c
@@ -1101,7 +1101,7 @@
 		    cluevals[j] *= grid[i];
 		    break;
 		  case C_SUB:
-		    cluevals[j] = abs(cluevals[j] - grid[i]);
+		    cluevals[j] = labs(cluevals[j] - grid[i]);
 		    break;
 		  case C_DIV:
 		    {
@@ -1534,7 +1534,7 @@
 		cluevals[j] *= state->grid[i];
 		break;
 	      case C_SUB:
-		cluevals[j] = abs(cluevals[j] - state->grid[i]);
+		cluevals[j] = labs(cluevals[j] - state->grid[i]);
 		break;
 	      case C_DIV:
 		{
--- a/mkfiles.pl
+++ b/mkfiles.pl
@@ -1707,7 +1707,7 @@
 if (defined $makefiles{'osx'}) {
     $mftyp = 'osx';
     $dirpfx = &dirpfx($makefiles{'osx'}, "/");
-    @osxarchs = ('i386');
+    @osxarchs = ('i386', 'x86_64');
 
     ##-- Mac OS X makefile
     open OUT, ">$makefiles{'osx'}"; select OUT;