Opened 17 years ago

Closed 17 years ago

#1829 closed defect (fixed)

GSG: Use the actual C headers rather than the C++ wrappers

Reported by: pvachon Owned by: warmerdam
Priority: normal Milestone: 1.5.0
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: gsg
Cc:

Description

The GSG drivers made use of the C++ "wrappers" around the standard C headers, such as:

  • #include <cassert>
  • #include <cmath>
  • #include <cstdlib>

etc...

This is an issue for older compilers, such as MIPSpro. As such, this patch replaces these headers with the actual standard library header:

  • #include <assert.h>
  • #include <math.h>
  • #include <stdlib.h>

etc...

Attachments (1)

gsg_fixes.patch (1.2 KB ) - added by pvachon 17 years ago.
The patch for the GSG driver. To apply, copy to the frmts/gsg/ directory and run patch -p1 < gsg_fixes.patch

Download all attachments as: .zip

Change History (3)

by pvachon, 17 years ago

Attachment: gsg_fixes.patch added

The patch for the GSG driver. To apply, copy to the frmts/gsg/ directory and run patch -p1 < gsg_fixes.patch

comment:1 by warmerdam, 17 years ago

Patched in trunk.

comment:2 by warmerdam, 17 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.