Changeset 11554
- Timestamp:
- 05/18/07 13:09:03 (2 years ago)
- Files:
-
- branches/1.4/gdal/frmts/grass/GNUmakefile (modified) (2 diffs)
- branches/1.4/gdal/frmts/grass/grass57dataset.cpp (modified) (2 diffs)
- branches/1.4/gdal/ogr/ogrsf_frmts/grass/ogrgrass.h (modified) (1 diff)
- branches/1.4/gdal/ogr/ogrsf_frmts/grass/ogrgrassdatasource.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.4/gdal/frmts/grass/GNUmakefile
r9466 r11554 17 17 clean: 18 18 rm -f *.o $(O_OBJ) $(OBJ) 19 rm -f *~ 19 20 20 21 install-obj: $(O_OBJ) … … 22 23 dist: 23 24 cp -r pkg gdal-grass-$(GDAL_VER) 24 rm -rf gdal-grass-$(GDAL_VER)/ CVS25 rm -rf gdal-grass-$(GDAL_VER)/.svn 25 26 cp grass57dataset.cpp gdal-grass-$(GDAL_VER) 26 cp ../../ogr/ogrsf_frmts/grass/*.{cpp,h} gdal-grass-$(GDAL_VER) 27 cp ../../ogr/ogrsf_frmts/grass/*.cpp gdal-grass-$(GDAL_VER) 28 cp ../../ogr/ogrsf_frmts/grass/*.h gdal-grass-$(GDAL_VER) 27 29 tar czvf gdal-grass-$(GDAL_VER).tar.gz ./gdal-grass-$(GDAL_VER) 28 30 rm -rf gdal-grass-$(GDAL_VER) 31 branches/1.4/gdal/frmts/grass/grass57dataset.cpp
r10646 r11554 42 42 #endif 43 43 44 #include <grass/version.h> 44 45 #include <grass/gprojects.h> 45 46 #include <grass/gis.h> … … 786 787 /************************************************************************/ 787 788 789 #if GRASS_VERSION_MAJOR >= 6 && GRASS_VERSION_MINOR >= 3 790 typedef int (*GrassErrorHandler)(const char *, int); 791 #else 788 792 typedef int (*GrassErrorHandler)(char *, int); 793 #endif 789 794 790 795 GDALDataset *GRASSDataset::Open( GDALOpenInfo * poOpenInfo ) branches/1.4/gdal/ogr/ogrsf_frmts/grass/ogrgrass.h
r10646 r11554 34 34 35 35 extern "C" { 36 #include <grass/version.h> 36 37 #include <grass/gprojects.h> 37 38 #include <grass/gis.h> branches/1.4/gdal/ogr/ogrsf_frmts/grass/ogrgrassdatasource.cpp
r10646 r11554 66 66 OGRGRASSDataSource::~OGRGRASSDataSource() 67 67 { 68 CPLDebug ( "GRASS", "OGRGRASSDataSource::~OGRGRASSDataSource()" );69 70 68 for( int i = 0; i < nLayers; i++ ) 71 69 delete papoLayers[i]; … … 82 80 /* Open() */ 83 81 /************************************************************************/ 82 83 #if GRASS_VERSION_MAJOR >= 6 && GRASS_VERSION_MINOR >= 3 84 typedef int (*GrassErrorHandler)(const char *, int); 85 #else 84 86 typedef int (*GrassErrorHandler)(char *, int); 87 #endif 85 88 86 89 int OGRGRASSDataSource::Open( const char * pszNewName, int bUpdate, 87 90 int bTestOpen, int bSingleNewFileIn ) 88 91 { 89 CPLDebug ( "GRASS", "OGRGRASSDataSource::Open" );90 91 92 VSIStatBuf stat; 92 93
