summaryrefslogtreecommitdiffstats
path: root/base/float_util.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-01 00:35:15 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-01 00:35:15 +0000
commit93f21e4ceb7b2bda9d50657cce47f2e640e567b5 (patch)
tree701675d956c23c5bd600141342b867a411bd1a2c /base/float_util.h
parent466cd64ae3c3550a5c5695a6d5fa8f9ab47f2456 (diff)
downloadchromium_src-93f21e4ceb7b2bda9d50657cce47f2e640e567b5.zip
chromium_src-93f21e4ceb7b2bda9d50657cce47f2e640e567b5.tar.gz
chromium_src-93f21e4ceb7b2bda9d50657cce47f2e640e567b5.tar.bz2
Solaris: various edits towards compiling Chromium on Solaris. Changed __Solaris__ to __sun. Defined NAME_MAX as MAXNAMLEN for systems where it is undefined.
BUG=30101 TEST=compiles Patch by James Choi <jchoi42 at pha.jhu.edu> Review URL: http://codereview.chromium.org/652166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43297 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/float_util.h')
-rw-r--r--base/float_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/float_util.h b/base/float_util.h
index 5909995..a71b639 100644
--- a/base/float_util.h
+++ b/base/float_util.h
@@ -10,6 +10,10 @@
#include <float.h>
#include <math.h>
+#if defined(OS_SOLARIS)
+#include <ieeefp.h>
+#endif
+
namespace base {
inline bool IsFinite(const double& number) {