[Liblas-commits] libpc: tweak #ifdefs

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Mar 11 14:27:48 EST 2011


details:   http://hg.liblas.orglibpc/rev/ae4301a38edc
changeset: 210:ae4301a38edc
user:      Howard Butler <hobu.inc at gmail.com>
date:      Fri Mar 11 13:27:39 2011 -0600
description:
tweak #ifdefs

diffstat:

 apps/pc2pc.cpp |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 379061fbe63b -r ae4301a38edc apps/pc2pc.cpp
--- a/apps/pc2pc.cpp	Fri Mar 11 09:23:19 2011 -0800
+++ b/apps/pc2pc.cpp	Fri Mar 11 13:27:39 2011 -0600
@@ -122,12 +122,13 @@
         writer.write(np);
     }
 
+#ifdef HAVE_ORACLE
 
     else if (hasOption("oracle"))
     {
 #ifdef HAVE_ORACLE
         LasReader reader(*ifs);
-        std::cout << "running oracle test" << std::endl;
+    
         const boost::uint64_t numPoints = reader.getHeader().getNumPoints();
         
         libpc::driver::oci::Options options;
@@ -149,12 +150,12 @@
 
         size_t np = (size_t)numPoints;
         assert(numPoints == np); // BUG
-         writer.write(np);
+        writer.write(np);
 #else
         throw configuration_error("libPC not compiled with Oracle support");
 #endif
     }    
-
+#endif
     else
     {
         LiblasReader reader(*ifs);


More information about the Liblas-commits mailing list