Fix for regression in double-inclusion protection
Alex Cherepanov <[email protected]>
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Message-ID | <[email protected]> |
Add double-inclusion protection to errors.h to pacify the regreaaion test and rename double-inclusion protection variable in ierrors.h for the naming consistency. _______________________________________________ gs-code-review mailing list [email protected] http://www.ghostscript.com/mailman/listinfo/gs-code-review
errors.h.diff
(text/plain, 1.4 KB)
Index: gs/src/errors.h =================================================================== RCS file: /cvs/ghostscript/gs/src/errors.h,v retrieving revision 1.8 diff -b -u -r1.8 errors.h --- gs/src/errors.h 3 Sep 2003 03:22:59 -0000 1.8 +++ gs/src/errors.h 3 Dec 2003 18:50:04 -0000 @@ -16,6 +16,9 @@ /* $Id: errors.h,v 1.8 2003/09/03 03:22:59 giles Exp $ */ +#ifndef errors_INCLUDED +# define errors_INCLUDED + /* This file used to contain error codes for the Ghostscript client api. * It has been renamed ierrors.h to reduce the risk of namespace collision * and to be consistent with iapi.h. @@ -24,3 +27,4 @@ /* We include that file here to backward compatibility */ #include "ierrors.h" +#endif /* errors_INCLUDED */ Index: gs/src/ierrors.h =================================================================== RCS file: /cvs/ghostscript/gs/src/ierrors.h,v retrieving revision 1.1 diff -b -u -r1.1 ierrors.h --- gs/src/ierrors.h 3 Sep 2003 03:22:59 -0000 1.1 +++ gs/src/ierrors.h 3 Dec 2003 18:50:04 -0000 @@ -17,8 +17,8 @@ /* $Id: ierrors.h,v 1.1 2003/09/03 03:22:59 giles Exp $ */ /* Definition of error codes */ -#ifndef errors_INCLUDED -# define errors_INCLUDED +#ifndef ierrors_INCLUDED +# define ierrors_INCLUDED /* * DO NOT USE THIS FILE IN THE GRAPHICS LIBRARY. @@ -165,4 +165,4 @@ #define ERROR_IS_INTERRUPT(ecode)\ ((ecode) == e_interrupt || (ecode) == e_timeout) -#endif /* errors_INCLUDED */ +#endif /* ierrors_INCLUDED */