summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 02c9d4b)
raw | patch | inline | side by side (parent: 02c9d4b)
author | jiho-sf <jiho-sf@users.sourceforge.net> | |
Tue, 1 May 2007 21:41:07 +0000 (21:41 +0000) | ||
committer | jiho-sf <jiho-sf@users.sourceforge.net> | |
Tue, 1 May 2007 21:41:07 +0000 (21:41 +0000) |
- in src/libcola/cola.cpp, isnan is used and not the cross-platform definition isNaN defined in isnan.h => replaced isnan by isNaN and included isnan.h
- add math.h include in src/libcola/gradient_projection.cpp
This was necessary because libcola does not compile for OS X 10.3.9
- add math.h include in src/libcola/gradient_projection.cpp
This was necessary because libcola does not compile for OS X 10.3.9
src/libcola/cola.cpp | patch | blob | history | |
src/libcola/gradient_projection.cpp | patch | blob | history |
diff --git a/src/libcola/cola.cpp b/src/libcola/cola.cpp
index 74cab50daca440f4225bfcc311443bff56c2d4fb..afad49eb2f59ba786375d60b5b386a4217e0e408 100644 (file)
--- a/src/libcola/cola.cpp
+++ b/src/libcola/cola.cpp
#include "conjugate_gradient.h"
#include "straightener.h"
#include "shortest_paths.h"
+#include "isnan.h"
namespace cola {
}
b[i] += degree * coords[i];
}
- assert(!isnan(b[i]));
+ assert(!isNaN(b[i]));
}
if(constrainedLayout) {
setupDummyVars();
index 78b141b3e788ffb003cb01e3894df288da984cc6..94844ca881c0bda3b8c95c308eb785234e0f2df2 100644 (file)
#include <iostream>
#include "isnan.h"
#include "isinf.h"
-
+#include <math.h>
using namespace std;
using namespace vpsc;