| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|
|
|
|
| |
This avoids incompatible-pointer warnings from the c-compiler when using
`CApiFFI`
|
| |
|
| |
|
|
|
|
| |
(And a small matter of using != instead of /= -- how embarrassing!)
|
|
|
|
|
| |
On MacOS X, it is defined as "(((__uint64_t)1 << 63) - 1)", and
hence cannot be used inside C preprocessor logic.
|
| |
|
|
|
|
|
|
|
|
|
| |
CPP conditional code sections have been carefully taken into account
while performing this warning cleanup. Most `OPTIONS_GHC` declarations
could be dropped (now only a lonely `{-# OPTIONS_GHC -fno-cse #-}`
remains in `Posix.Signals`).
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
|
|
|
|
|
| |
Only language extensions not active when `-XHaskell2010` is enabled are
declared, this way we can drop many redundant
`{-# LANGUAGE ForeignFunctionInterface #-}` occurences. This commit also
removes/replaces some `{-# OPTIONS_GHC -XRecordWildCards #-}` pragmas.
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
|
|
|
|
| |
and remove code to support older versions
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This is for #2038: macros are used in the Linux .h includes to redirect
to a 64-bit version when large file support is enabled.
|
| |
|
|
|
|
|
| |
Undo previous commit: it breaks when RLIM_INFINITY is defined to an
expression that CPP doesn't understand.
|
|
|
|
|
| |
Warning police (for platforms where all resource limits can be
represented, i.e. RLIM_INFINITY == RLIM_SAVED_MAX == RLIM_SAVED_CUR)
|
|
|
|
| |
Add #ifdefs for RLIMIT_AS and RLIM_SAVED_*, which are not defined on Mac OS X.
|
|
Add getrlimit()/setrlimit() suppport
|