]> git.street.me.uk Git - andy/viking.git/blobdiff - src/vikcoordlayer.c
Create the geonames search as an VikXmlSearchTool
[andy/viking.git] / src / vikcoordlayer.c
index 295af081cbbb30be96ce3b6d5dccc78cab9ae822..2302d65e70945351368085257d4453ad1e7da63d 100644 (file)
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+
+#ifdef HAVE_MATH_H
 #include <math.h>
+#endif
 #include <glib/gi18n.h>
 
 #include "viking.h"
@@ -64,7 +67,7 @@ VikLayerInterface vik_coord_layer_interface = {
 
   (VikLayerFuncCreate)                  vik_coord_layer_create,
   (VikLayerFuncRealize)                 NULL,
-                                        coord_layer_post_read,
+  (VikLayerFuncPostRead)                coord_layer_post_read,
   (VikLayerFuncFree)                    vik_coord_layer_free,
 
   (VikLayerFuncProperties)              NULL,
@@ -189,9 +192,9 @@ VikCoordLayer *vik_coord_layer_new ( )
   vik_layer_init ( VIK_LAYER(vcl), VIK_LAYER_COORD );
 
   InitColor.pixel = 0;
-       InitColor.red = 65535;
-       InitColor.green = 65535;
-       InitColor.blue = 65535;
+  InitColor.red = 65535;
+  InitColor.green = 65535;
+  InitColor.blue = 65535;
 
   vcl->gc = NULL;
   vcl->deg_inc = 1.0/60.0;