[GRASS5] Re: [GRASSLIST:778] Re: Problem GRASS-6.0.2

Hamish hamish_nospam at yahoo.com
Thu Apr 20 09:23:04 EDT 2006


> If the --enable-largefile configure option is used, the header
> <grass/config.h> will define some macros which cause off_t to be
> defined as a 64-bit type and the I/O functions declared in <unistd.h>
> to be the 64-bit versions (open64 etc).
> 
> If a module only does sequential file access (open, read/write,
> close), including <grass/config.h> before any other headers will be
> sufficient (note that <grass/gis.h> includes <grass/config.h>).


does this mean as standard practice in most modules we should be
using this order:

#include <grass/gis.h>
#include <stdio.h>
#include <string.h>
..
#include <grass/raster.h>
#include "local_proto.h"

or this:

#include <grass/config.h>
#include <stdio.h>
#include <string.h>
..
#include <grass/gis.h>
#include <grass/raster.h>
#include "local_proto.h"

or this:

#include <stdio.h>
#include <string.h>
#include <grass/config.h>
#include <unistd.h>
..
#include <grass/gis.h>
#include <grass/raster.h>
#include "local_proto.h"


??

thanks,
Hamish




More information about the grass-dev mailing list