From: sof Date: Thu, 30 Oct 1997 22:32:03 +0000 (+0000) Subject: [project @ 1997-10-30 22:32:03 by sof] X-Git-Tag: Approx_2487_patches~1323 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=5683f47f48fad9a9cf8df9991f7532ef8d21bf71;p=ghc-hetmet.git [project @ 1997-10-30 22:32:03 by sof] Cosmetic fix to avoid cpp warnings under linux --- diff --git a/ghc/runtime/gmp/gmp-impl.h b/ghc/runtime/gmp/gmp-impl.h index e02691f..d42c715 100644 --- a/ghc/runtime/gmp/gmp-impl.h +++ b/ghc/runtime/gmp/gmp-impl.h @@ -37,7 +37,12 @@ void *alloca(); #include "gmp-mparam.h" -#ifdef __STDC__ +/* + Cosmetic, but when running mkdependC on this under linux-2.x, + we're warned about redefinition of signed (done in sys/cdefs.h). + To avoid this wibble, we've weakened the #if below. + */ +#if defined(__STDC__) || defined(__linux__) void *malloc (size_t); void *realloc (void *, size_t); void free (void *);