diff options
Diffstat (limited to 'compiler-rt/lib/builtins/fp_lib.h')
| -rw-r--r-- | compiler-rt/lib/builtins/fp_lib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler-rt/lib/builtins/fp_lib.h b/compiler-rt/lib/builtins/fp_lib.h index 7b905181c93..faebb99ecd5 100644 --- a/compiler-rt/lib/builtins/fp_lib.h +++ b/compiler-rt/lib/builtins/fp_lib.h @@ -26,6 +26,18 @@ #include <limits.h> #include "int_lib.h" +// x86_64 FreeBSD prior v9.3 define fixed-width types incorrectly in +// 32-bit mode. +#if defined(__FreeBSD__) && defined(__i386__) +# include <sys/param.h> +# if __FreeBSD_version < 903000 // v9.3 +# define uint64_t unsigned long long +# define int64_t long long +# undef UINT64_C +# define UINT64_C(c) (c ## ULL) +# endif +#endif + #if defined SINGLE_PRECISION typedef uint32_t rep_t; |

