Skip to content

Commit dd36727

Browse files
committedSep 21, 2012
fix windows build
1 parent a15e34f commit dd36727

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎src/providers/grass/qgis.d.rast.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <stdio.h>
2929
#include <string.h>
3030
#include <math.h>
31+
#include <assert.h>
3132
#ifdef WIN32
3233
#include <fcntl.h>
3334
#include <io.h>
@@ -36,6 +37,12 @@
3637
#include <grass/raster.h>
3738
#include <grass/display.h>
3839

40+
#ifdef _MSC_VER
41+
#include <float.h>
42+
#define INFINITY (DBL_MAX+DBL_MAX)
43+
#define NAN (INFINITY-INFINITY)
44+
#endif
45+
3946
int display( char *name, char *mapset, RASTER_MAP_TYPE data_type, char *format );
4047

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

161+
assert( dnul != dnul );
162+
assert( fnul != fnul );
163+
154164
big_endian = !( *(( char * )( &one ) ) );
155165

156166
ncols = G_window_cols();

0 commit comments

Comments
 (0)
Please sign in to comment.