[Kstars-devel] KDE/kdeedu/kstars/kstars/htmesh

Pino Toscano toscano.pino at tiscali.it
Tue Aug 14 17:34:46 CEST 2007


SVN commit 700029 by pino:

Add an own config to the htmesh library to check whether drand48() is already provided by the system.

CCMAIL: kstars-devel at kde.org


 M  +5 -0      CMakeLists.txt  
 M  +3 -0      SkipList.cpp  
 A             config-htmesh.h.cmake  


--- trunk/KDE/kdeedu/kstars/kstars/htmesh/CMakeLists.txt #700028:700029
@@ -1,3 +1,8 @@
+
+check_function_exists(drand48 HAVE_DRAND48)
+
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-htmesh.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-htmesh.h )
+
 ### HTMesh library
 set(HTMesh_LIB_SRCS
 	${CMAKE_SOURCE_DIR}/kstars/kstars/htmesh/HtmRange.cpp
--- trunk/KDE/kdeedu/kstars/kstars/htmesh/SkipList.cpp #700028:700029
@@ -18,7 +18,9 @@
 #include "SkipListElement.h" 
 #include "SkipList.h"
 
+#include <config-htmesh.h>
 
+#ifndef HAVE_DRAND48
 double drand48()
 {
   double result;
@@ -32,6 +34,7 @@
 #endif
   return result;
 }
+#endif /* HAVE_DRAND48 */
 
 
 ////////////////////////////////////////////////////////////////////////////////


More information about the Kstars-devel mailing list