diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-08-04 03:30:10 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-08-04 03:30:10 +0000 |
commit | df479b6717e4300dfeb6cc51e6f6b68118fafdcd (patch) | |
tree | fa513da8813ae5bf8da8e79d8ef84a8c80343488 /lib/int_lib.h | |
parent | 6c307f0ec927c9eb8bfcee8a4b7f7b8e12ef56be (diff) |
Refactor out common pre-processor code.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@78037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/int_lib.h')
-rw-r--r-- | lib/int_lib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/int_lib.h b/lib/int_lib.h index e8365506f..3690d2ebe 100644 --- a/lib/int_lib.h +++ b/lib/int_lib.h @@ -19,6 +19,11 @@ // Assumption: right shift of signed negative is arithmetic shift #include <limits.h> +#include <math.h> + +#if !defined(INFINITY) && defined(HUGE_VAL) +#define INFINITY HUGE_VAL +#endif // TODO: Improve this to minimal pre-processor hackish'ness. #if defined (__SVR4) && defined (__sun) |