cococo111111 / libsquish

Automatically exported from code.google.com/p/libsquish
MIT License
0 stars 0 forks source link

Inclusion of <climits> #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When compiling libsquish under Linux (Debian, up-to-date testing branch),
it fails, complaining about INT_MAX being undeclared. This is easily solved
by #including <climits> (which is a standard C++ header) in alpha.cpp and
singlecolourfit.cpp. Can this be incorporated into the trunk?

Original issue reported on code.google.com by ineqvat...@gmail.com on 13 Nov 2009 at 6:27

GoogleCodeExporter commented 9 years ago
Ah, I just noticed this already has already been brought up. I'd like to point 
out,
though, that the way of including that header as <limits.h> is deprecated in 
C++, and
#include <climits> is a more standard-compliant way.

Cheers,

Leszek

Original comment by ineqvat...@gmail.com on 13 Nov 2009 at 6:29