diff options
Diffstat (limited to 'utils/hp2ps')
-rw-r--r-- | utils/hp2ps/HpFile.c | 2 | ||||
-rw-r--r-- | utils/hp2ps/Main.c | 2 | ||||
-rw-r--r-- | utils/hp2ps/Main.h | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/utils/hp2ps/HpFile.c b/utils/hp2ps/HpFile.c index deef58201d..e21acf3f91 100644 --- a/utils/hp2ps/HpFile.c +++ b/utils/hp2ps/HpFile.c @@ -8,7 +8,7 @@ #include "HpFile.h" #include "Utilities.h" -#ifndef atof +#if !defined(atof) double atof PROTO((const char *)); #endif diff --git a/utils/hp2ps/Main.c b/utils/hp2ps/Main.c index 7731d4c8f0..a44e41c862 100644 --- a/utils/hp2ps/Main.c +++ b/utils/hp2ps/Main.c @@ -244,7 +244,7 @@ Fp(char *rootname, char **filename, char *suffix, char *mode) return(OpenFile(*filename, mode)); } -#ifdef DEBUG +#if defined(DEBUG) void _stgAssert (filename, linenum) char *filename; diff --git a/utils/hp2ps/Main.h b/utils/hp2ps/Main.h index b023d42656..1eea93f0a2 100644 --- a/utils/hp2ps/Main.h +++ b/utils/hp2ps/Main.h @@ -3,14 +3,14 @@ #include "ghcconfig.h" #include <stdio.h> -#ifdef __STDC__ +#if defined(__STDC__) #define PROTO(x) x #else #define PROTO(x) () #endif /* our own ASSERT macro (for C) */ -#ifndef DEBUG +#if !defined(DEBUG) #define ASSERT(predicate) /*nothing*/ #else @@ -34,7 +34,7 @@ typedef int boolish; /* Use "long long" if we have it: the numbers in profiles can easily * overflow 32 bits after a few seconds execution. */ -#ifdef HAVE_LONG_LONG +#if defined(HAVE_LONG_LONG) typedef long long int intish; #else typedef long int intish; |