[110293] trunk/dports/graphics/wxWidgets-3.0

michaelld at macports.org michaelld at macports.org
Thu Aug 29 10:03:19 PDT 2013


Revision: 110293
          https://trac.macports.org/changeset/110293
Author:   michaelld at macports.org
Date:     2013-08-29 10:03:19 -0700 (Thu, 29 Aug 2013)
Log Message:
-----------
wxWidgets-3.0: add patch to correct use of std:: in wx/math.h .

Modified Paths:
--------------
    trunk/dports/graphics/wxWidgets-3.0/Portfile

Added Paths:
-----------
    trunk/dports/graphics/wxWidgets-3.0/files/patch-include-wx-math.h.diff

Modified: trunk/dports/graphics/wxWidgets-3.0/Portfile
===================================================================
--- trunk/dports/graphics/wxWidgets-3.0/Portfile	2013-08-29 16:47:42 UTC (rev 110292)
+++ trunk/dports/graphics/wxWidgets-3.0/Portfile	2013-08-29 17:03:19 UTC (rev 110293)
@@ -201,6 +201,7 @@
 }
 
 variant stdlib description {add support for various standard library features} {
+    patchfiles-append       patch-include-wx-math.h.diff
     configure.args-append   --enable-stl \
                             --enable-std_containers \
                             --enable-std_iostreams \

Added: trunk/dports/graphics/wxWidgets-3.0/files/patch-include-wx-math.h.diff
===================================================================
--- trunk/dports/graphics/wxWidgets-3.0/files/patch-include-wx-math.h.diff	                        (rev 0)
+++ trunk/dports/graphics/wxWidgets-3.0/files/patch-include-wx-math.h.diff	2013-08-29 17:03:19 UTC (rev 110293)
@@ -0,0 +1,11 @@
+--- include/wx/math.h.orig	2013-08-29 12:45:25.000000000 -0400
++++ include/wx/math.h	2013-08-29 12:45:40.000000000 -0400
+@@ -62,7 +62,7 @@
+         add more compilers with C99 support here: using C99 isfinite() is
+         preferable to using BSD-ish finite()
+      */
+-    #define wxFinite(x) isfinite(x)
++    #define wxFinite(x) std::isfinite(x)
+ #elif ( defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \
+       defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \
+       defined(__HPUX__) ) && ( !defined(wxOSX_USE_IPHONE) || wxOSX_USE_IPHONE == 0 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130829/924dafcc/attachment.html>


More information about the macports-changes mailing list