diff options
author | Robin Watts <robin.watts@artifex.com> | 2009-12-23 21:12:34 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2009-12-23 21:12:34 +0000 |
commit | f1fae4add505079f54831c15393ef7e323f14a55 (patch) | |
tree | 233ab640ea1619b616827a5eb7ef67f6ca0829a1 /gs/contrib | |
parent | e741450d63aabfd9522447c9f5f6fc8068d40a93 (diff) |
Add new assert_.h header file. Convert existing code to use it.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10550 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/contrib')
-rw-r--r-- | gs/contrib/gdevcd8.c | 2 | ||||
-rw-r--r-- | gs/contrib/lips4/gdevlprn.h | 4 | ||||
-rw-r--r-- | gs/contrib/pcl3/eprn/eprnrend.c | 2 | ||||
-rw-r--r-- | gs/contrib/pcl3/eprn/mediasize.c | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/gs/contrib/gdevcd8.c b/gs/contrib/gdevcd8.c index b7a085f3f..2666bf0b3 100644 --- a/gs/contrib/gdevcd8.c +++ b/gs/contrib/gdevcd8.c @@ -177,7 +177,7 @@ #include "math_.h" #include <stdlib.h> /* for rand() */ -#include <assert.h> +#include "assert_.h" #include "gdevprn.h" #include "gdevpcl.h" #include "gsparam.h" diff --git a/gs/contrib/lips4/gdevlprn.h b/gs/contrib/lips4/gdevlprn.h index 45219b5fd..a45001189 100644 --- a/gs/contrib/lips4/gdevlprn.h +++ b/gs/contrib/lips4/gdevlprn.h @@ -137,9 +137,7 @@ struct gx_device_lprn_s #define ESC 0x1b /* \033 */ #define GS 0x1d /* \035 */ -#ifndef assert -# define assert(x) -#endif +#include "assert_.h" dev_proc_get_params(lprn_get_params); dev_proc_put_params(lprn_put_params); diff --git a/gs/contrib/pcl3/eprn/eprnrend.c b/gs/contrib/pcl3/eprn/eprnrend.c index ed611af7b..544829e7f 100644 --- a/gs/contrib/pcl3/eprn/eprnrend.c +++ b/gs/contrib/pcl3/eprn/eprnrend.c @@ -61,7 +61,7 @@ static const char #include "std.h" /* Standard headers */ -#include <assert.h> +#include "assert_.h" #include <stdlib.h> /* Ghostscript headers */ diff --git a/gs/contrib/pcl3/eprn/mediasize.c b/gs/contrib/pcl3/eprn/mediasize.c index b150f6a85..abc706c84 100644 --- a/gs/contrib/pcl3/eprn/mediasize.c +++ b/gs/contrib/pcl3/eprn/mediasize.c @@ -26,7 +26,7 @@ static const char #include "std.h" /* Standard headers */ -#include <assert.h> +#include <assert_.h> #include <errno.h> #include <stdlib.h> #include <string.h> |