From 3cbce33870144457dfe15862ffb46b6ea964fd39 Mon Sep 17 00:00:00 2001
From: Brad Barber <bradb@shore.net>
Date: Wed, 17 Mar 2010 22:19:48 -0400
Subject: [PATCH] Define QHULL_USES_QT for qt-qhull.cpp [renangms]

---
 cpp/qt-qhull.cpp    | 8 ++++----
 cpp/road/RoadTest.h | 2 ++
 src/Changes.txt     | 5 +++++
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/cpp/qt-qhull.cpp b/cpp/qt-qhull.cpp
index 2e29948..d50f2c5 100644
--- a/cpp/qt-qhull.cpp
+++ b/cpp/qt-qhull.cpp
@@ -8,6 +8,10 @@
 
 #include <QList>
 
+#ifndef QHULL_USES_QT
+#define QHULL_USES_QT 1
+#endif
+
 #include "Coordinates.h"
 #include "QhullFacetList.h"
 #include "QhullFacetSet.h"
@@ -22,10 +26,6 @@ namespace orgQhull {
 
 #//Conversions
 
-#ifndef QHULL_USES_QT
-#error Compile with QHULL_USES_QT defined
-#endif
-
 QList<coordT> Coordinates::
 toQList() const
 {
diff --git a/cpp/road/RoadTest.h b/cpp/road/RoadTest.h
index f44ef7d..dec711a 100644
--- a/cpp/road/RoadTest.h
+++ b/cpp/road/RoadTest.h
@@ -13,7 +13,9 @@
 #include <QObject>    // Qt C++ Framework
 #include <QtTest/QtTest>
 
+#ifndef QHULL_USES_QT
 #define QHULL_USES_QT 1
+#endif
 
 namespace orgQhull {
 
diff --git a/src/Changes.txt b/src/Changes.txt
index aa27db4..0608d70 100644
--- a/src/Changes.txt
+++ b/src/Changes.txt
@@ -21,6 +21,11 @@ To do
  - Create signed tags for Qhull versions
  - Add FIXUP for known problems and update wiki
  - Notes to compgeom on conformant triangulation and Voronoi volume
+ - How to set debug or release mode if not using QtCreator
+
+------------
+gitorious.org/qhull 2010/03/17
+ - Define QHULL_USES_QT for qt-qhull.cpp [renangms]
 
 ------------
 gitorious.org/qhull 2010/03/14
-- 
GitLab