It wasn't an hg patch. Attached is an hg patch that should work with hg import.
-Matthew On Tuesday, February 11, 2014 5:45:23 PM UTC-5, Tduell wrote: > > Hello Matthew, > > On Wed, 12 Feb 2014 09:11:00 +1100, Matthew Petroff > <[email protected]<javascript:>> > > wrote: > > > Attached is a small patch for libpano13 that uses the default atanh > > function for MSVC 2012+ instead of the bundled version. It fixes shared > > library compilation on MSVC 2013. Could someone with repository access > > please commit it? > > > > I tried, but it failed to apply... > > [terry@localhost libpano13]$ hg import ../libpano-msvc-patch.diff > applying ../libpano-msvc-patch.diff > patching file math.c > Hunk #1 FAILED at 50 > 1 out of 1 hunks FAILED -- saving rejects to file math.c.rej > abort: patch failed to apply > > The content of math.c.rej, > > --- math.c > +++ math.c > @@ -51,8 +51,8 @@ > > //------------------------- Some auxilliary math functions > -------------------------------------------- > > -// atanh is not available on MSVC. Use the atanh routine from gsl > -#ifdef _MSC_VER > +// atanh is not available on MSVC until Visual Studio 2012. Use the atanh > > routine from gsl. > +#if _MSC_VER < 1700 > > #define GSL_DBL_EPSILON 2.2204460492503131e-16 > #define GSL_SQRT_DBL_EPSILON 1.4901161193847656e-08 > > I can't see any other changes in these lines of math.c in my working copy > > that would affect the patch. > > Cheers, > -- > Regards, > Terry Duell > -- A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ --- You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/47b7f385-b8de-41c6-b072-d1baad24d9ac%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
# HG changeset patch # User Matthew Petroff <[email protected]> # Date 1392167161 18000 # Node ID 9133a9949ad20a7da01417c563ab8572d3aabe59 # Parent bced6574df70eb724f30e94b946273d2dd3b2d1e Use default atanh for MSVC 2012+. diff -r bced6574df70 -r 9133a9949ad2 math.c --- a/math.c Mon Jan 06 23:00:51 2014 +0000 +++ b/math.c Tue Feb 11 20:06:01 2014 -0500 @@ -51,8 +51,8 @@ //------------------------- Some auxilliary math functions -------------------------------------------- -// atanh is not available on MSVC. Use the atanh routine from gsl -#ifdef _MSC_VER +// atanh is not available on MSVC until Visual Studio 2012. Use the atanh routine from gsl. +#if _MSC_VER < 1700 #define GSL_DBL_EPSILON 2.2204460492503131e-16 #define GSL_SQRT_DBL_EPSILON 1.4901161193847656e-08
