gxstdio.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Copyright (C) 2000 Aladdin Enterprises. All rights reserved.
  2. This file is part of AFPL Ghostscript.
  3. AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
  4. distributor accepts any responsibility for the consequences of using it, or
  5. for whether it serves any particular purpose or works at all, unless he or
  6. she says so in writing. Refer to the Aladdin Free Public License (the
  7. "License") for full details.
  8. Every copy of AFPL Ghostscript must include a copy of the License, normally
  9. in a plain ASCII text file named PUBLIC. The License grants you the right
  10. to copy, modify and redistribute AFPL Ghostscript, but only under certain
  11. conditions described in the License. Among other things, the License
  12. requires that the copyright notice and this notice be preserved on all
  13. copies.
  14. */
  15. /*$Id: gxstdio.h,v 1.2 2000/09/19 19:00:40 lpd Exp $ */
  16. /* stdio back door */
  17. #ifndef gxstdio_INCLUDED
  18. # define gxstdio_INCLUDED
  19. /*
  20. * The library and interpreter never use stdin/out/err directly, but
  21. * for the moment we have to keep them around for contributed drivers,
  22. * some of which write to stdout or stderr.
  23. */
  24. #include "gsio.h"
  25. #undef stdin
  26. #define stdin gs_stdin
  27. #undef stdout
  28. #define stdout gs_stdout
  29. #undef stderr
  30. #define stderr gs_stderr
  31. #undef fgetchar
  32. #endif /* gxstdio_INCLUDED */