fix windows build

This commit is contained in:
Juergen E. Fischer 2012-09-21 18:01:46 +02:00
parent a15e34f3dd
commit dd367274a0

View File

@ -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();