Skip to content
Permalink
Browse files

fix windows build

  • Loading branch information
jef-n committed Sep 21, 2012
1 parent a15e34f commit dd367274a039bd50acc495c34417c25fb30307da
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/providers/grass/qgis.d.rast.c
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#ifdef WIN32
#include <fcntl.h>
#include <io.h>
@@ -36,6 +37,12 @@
#include <grass/raster.h>
#include <grass/display.h>

#ifdef _MSC_VER
#include <float.h>
#define INFINITY (DBL_MAX+DBL_MAX)
#define NAN (INFINITY-INFINITY)
#endif

int display( char *name, char *mapset, RASTER_MAP_TYPE data_type, char *format );

int main( int argc, char **argv )
@@ -151,6 +158,9 @@ static int cell_draw( char *name,
// and 0./0. if all fails
#endif

assert( dnul != dnul );
assert( fnul != fnul );

big_endian = !( *(( char * )( &one ) ) );

ncols = G_window_cols();

0 comments on commit dd36727

Please sign in to comment.
You can’t perform that action at this time.