Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 21, 2012
1 parent a15e34f commit dd36727
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/providers/grass/qgis.d.rast.c
Expand Up @@ -28,6 +28,7 @@
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#ifdef WIN32
#include <fcntl.h>
#include <io.h>
Expand All @@ -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 )
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit dd36727

Please sign in to comment.