ports/math/gfan/files/patch-src_triangulation2.h
Mikael Urankar ecbb96a533 math/gfan: pass maintainership
o Update URL in MASTER_SITES to current address
o Update MAINTAINER
o Remove post-patch target as it is not needed
	- Use LDFLAGS instead of the non-standard variable
	  ADDITIONALLINKOPTIONS.
	- Replace "${REINPLACE_CMD} 's,log2,gfan_log2,g'" by appropriate
	  patch files as the command triggers multiple warnings. log2 is
	  a macro defined in src/log.h. The name of this macro is in
	  conflict with the function log2 from math.h. To avoid errors
	  when compiling the code, the above renaming is necessary.
	  Furthermore, PHB 4.4.3 strongly suggests using patch files
	  instead of REINPLACE_CMD for static content.
o Sort pkg-plist alphabetically as required by PHB 3.2.2
o Shorten pkg-descr and make it less technical

PR:		250879
Submitted by:	Moritz Schmitt (maintainer)
2020-12-04 18:17:32 +00:00

20 lines
767 B
C

--- src/triangulation2.h.orig 2017-06-20 14:47:37 UTC
+++ src/triangulation2.h
@@ -602,7 +602,7 @@ using namespace std;
/* void flip(IntegerVector const &normal)
{
AsciiPrinter P(Stderr);
- log2 print(P);
+ gfan_log2 print(P);
//log0 P.printVector(normal);
int n=normal.size();
// IntegerVectorList l=wallRemoveScaledInequalities(inequalities());// This is not needed - one circuit should be enough
@@ -610,7 +610,7 @@ using namespace std;
for(IntegerVectorList::const_iterator i=l.begin();i!=l.end();i++)
if(dependent(*i,normal))
{
- log2 AsciiPrinter(Stderr).printVector(*i);
+ gfan_log2 AsciiPrinter(Stderr).printVector(*i);
for(int k=0;k<normal.size();k++)
if((*i)[k]<0)
{