Skip to content

Commit

Permalink
CAD: fix compilation error on Solaris 11.3 / gcc 4.8
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/gdal/trunk@41764 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
rouault committed Mar 12, 2018
1 parent 26b9e06 commit 922ff15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gdal/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,15 @@
#if ((defined(__sun__) || defined(__FreeBSD__)) && __GNUC__ == 4 && __GNUC_MINOR__ == 8) || defined(__ANDROID__)
// gcc 4.8 on Solaris 11.3 or FreeBSD 11 doesn't have std::string
#include <sstream>
namespace std
{
template <typename T> std::string to_string(T val)
{
std::ostringstream os;
os << val;
return os.str();
}
}
#endif

#ifdef __APPLE__
Expand Down

0 comments on commit 922ff15

Please sign in to comment.