author | jiho-sf <jiho-sf@users.sourceforge.net> | |
Mon, 20 Aug 2007 07:48:49 +0000 (07:48 +0000) | ||
committer | jiho-sf <jiho-sf@users.sourceforge.net> | |
Mon, 20 Aug 2007 07:48:49 +0000 (07:48 +0000) | ||
commit | e4916b98a758b4ab0c11da9ee675f8d8ea7f7b9f | |
tree | 1c508488878005626ba94747ee1ad216b732b12c | tree | snapshot |
parent | 502757ccc1c8075bb0c42f8c82c1057a18947495 | commit | diff |
committed patch 1777220 by John Faith to fix compilation of Inkscape on OS X 10.3 (Panther)
g_return_val_if_fail(fabs(denom) > 1e-6, NR::Nothing());
is apparently causing gcc 3.3 to fail (OS X 10.3) with the error:
line-geometry.cpp: In member function `virtual NR::Maybe<NR::Point>
Box3D::Line::intersect(const Box3D::Line&)':
line-geometry.cpp:57: error: parse error before `;' token
If the NR::Nothing() is simply broken out as its own variable instead of
including it in g_return_val_if_fail(), then the file compiles. The root
cause is not known, but I assume this is a gcc bug.
This was the only source change needed for building svn 15634 for OS X
10.3.
g_return_val_if_fail(fabs(denom) > 1e-6, NR::Nothing());
is apparently causing gcc 3.3 to fail (OS X 10.3) with the error:
line-geometry.cpp: In member function `virtual NR::Maybe<NR::Point>
Box3D::Line::intersect(const Box3D::Line&)':
line-geometry.cpp:57: error: parse error before `;' token
If the NR::Nothing() is simply broken out as its own variable instead of
including it in g_return_val_if_fail(), then the file compiles. The root
cause is not known, but I assume this is a gcc bug.
This was the only source change needed for building svn 15634 for OS X
10.3.
src/line-geometry.cpp | diff | blob | history |