Browse Source

Clang fix

Clemens-Alexander Brust 11 years ago
parent
commit
a5730ca7e9
1 changed files with 5 additions and 1 deletions
  1. 5 1
      progs/classifyDatasetGPHIK.cpp

+ 5 - 1
progs/classifyDatasetGPHIK.cpp

@@ -92,7 +92,11 @@ void mapClassNumbersToIndices( const NICE::Vector & labels, std::map<int,int> &
 
 int main (int argc, char* argv[])
 {  
+#ifndef __clang__
+#ifndef __llvm__
   std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
+#endif
+#endif
 
   NICE::Config conf ( argc, argv );
  
@@ -182,4 +186,4 @@ int main (int argc, char* argv[])
     delete *itTestExamples;
   }
   return 0;
-}
+}