[GRASS-dev] Re: [GRASS GIS] #1131: Global LFS for wingrass

GRASS GIS trac at osgeo.org
Mon Aug 16 18:17:27 EDT 2010


#1131: Global LFS for wingrass
--------------------------+-------------------------------------------------
 Reporter:  mmetz         |       Owner:  grass-dev@…              
     Type:  defect        |      Status:  new                      
 Priority:  critical      |   Milestone:  7.0.0                    
Component:  libgis        |     Version:  svn-trunk                
 Keywords:  LFS,wingrass  |    Platform:  MSWindows 7              
      Cpu:  All           |  
--------------------------+-------------------------------------------------

Comment(by glynn):

 Replying to [comment:13 mmetz]:
 {{{
 #define lseek lseek64
 }}}
 >
 > does not work with old names in use, compiler error because
 <grass/config.h> needs to be included before all others.

 Can you provide details?

 > Alternatively, we could not redefine existing functions/types, but
 define functions/types for grass, e.g.
 >
 {{{
 #define g_off_t off64_t
 #define g_fseeko fseeko64
 #define g_ftello ftello64
 #define g_lseek lseek64
 /* use _stati64 compatible with MSVCRT < 6.1 */
 #define g_stat _stati64
 #define g_fstat _fstati64
 }}}

 If you take this route, these should be functions rather than macros
 (IMHO, g_off_t is a non-starter).

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1131#comment:14>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list