Revision: 26398 http://sourceforge.net/p/gar/code/26398 Author: rmottola Date: 2018-03-27 09:03:20 +0000 (Tue, 27 Mar 2018) Log Message: ----------- gnustep-gui/trunk: floorf patch
Modified Paths: -------------- csw/mgar/pkg/gnustep-gui/trunk/Makefile Added Paths: ----------- csw/mgar/pkg/gnustep-gui/trunk/files/0001-solaris-9-does-not-have-floorf-replace-with-dbl-vers.patch Modified: csw/mgar/pkg/gnustep-gui/trunk/Makefile =================================================================== --- csw/mgar/pkg/gnustep-gui/trunk/Makefile 2018-03-27 08:00:00 UTC (rev 26397) +++ csw/mgar/pkg/gnustep-gui/trunk/Makefile 2018-03-27 09:03:20 UTC (rev 26398) @@ -13,6 +13,9 @@ MASTER_SITES = ftp://ftp.gnustep.org/pub/gnustep/core/ DISTFILES = $(DISTNAME).tar.gz +PATCHFILES_5.9 += 0001-solaris-9-does-not-have-floorf-replace-with-dbl-vers.patch +PATCHFILES += $(BUILD_DEP_PKGS_$(GAROSREL)) + BUILD_DEP_PKGS += CSWgmake BUILD_DEP_PKGS += CSWgnustep-make BUILD_DEP_PKGS += CSWlibpng-dev Added: csw/mgar/pkg/gnustep-gui/trunk/files/0001-solaris-9-does-not-have-floorf-replace-with-dbl-vers.patch =================================================================== --- csw/mgar/pkg/gnustep-gui/trunk/files/0001-solaris-9-does-not-have-floorf-replace-with-dbl-vers.patch (rev 0) +++ csw/mgar/pkg/gnustep-gui/trunk/files/0001-solaris-9-does-not-have-floorf-replace-with-dbl-vers.patch 2018-03-27 09:03:20 UTC (rev 26398) @@ -0,0 +1,27 @@ +From 1d81ce1d3b3da37818856f80683ea15cf908063d Mon Sep 17 00:00:00 2001 +From: Riccardo Mottola <rmott...@opencsw.org> +Date: Tue, 27 Mar 2018 10:55:00 +0200 +Subject: [PATCH] solaris 9 does not have floorf(), replace with dbl versions + +--- + Source/NSBitmapImageRep+JPEG.m | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Source/NSBitmapImageRep+JPEG.m b/Source/NSBitmapImageRep+JPEG.m +index 08212a7..ca01d0d 100644 +--- a/Source/NSBitmapImageRep+JPEG.m ++++ b/Source/NSBitmapImageRep+JPEG.m +@@ -646,8 +646,8 @@ static void gs_jpeg_memory_dest_destroy (j_compress_ptr cinfo) + { + unsigned x_density, y_density; + +- x_density = (unsigned)floorf(width * 72 / size.width + 0.5); +- y_density = (unsigned)floorf(height * 72 / size.height + 0.5); ++ x_density = (unsigned)floor(width * 72 / size.width + 0.5); ++ y_density = (unsigned)floor(height * 72 / size.height + 0.5); + cinfo.X_density = x_density; + cinfo.Y_density = y_density; + cinfo.density_unit = 1; +-- +1.7.10.3 + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.