gxstdio.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* Copyright (C) 2000 Aladdin Enterprises. All rights reserved.
  2. This software is provided AS-IS with no warranty, either express or
  3. implied.
  4. This software is distributed under license and may not be copied,
  5. modified or distributed except as expressly authorized under the terms
  6. of the license contained in the file LICENSE in this distribution.
  7. For more information about licensing, please refer to
  8. http://www.ghostscript.com/licensing/. For information on
  9. commercial licensing, go to http://www.artifex.com/licensing/ or
  10. contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  12. */
  13. /* $Id: gxstdio.h,v 1.4 2002/02/21 22:24:53 giles Exp $ */
  14. /* stdio back door */
  15. #ifndef gxstdio_INCLUDED
  16. # define gxstdio_INCLUDED
  17. /*
  18. * The library and interpreter never use stdin/out/err directly, but
  19. * for the moment we have to keep them around for contributed drivers,
  20. * some of which write to stdout or stderr.
  21. */
  22. #include "gsio.h"
  23. #undef stdin
  24. #define stdin gs_stdin
  25. #undef stdout
  26. #define stdout gs_stdout
  27. #undef stderr
  28. #define stderr gs_stderr
  29. #undef fgetchar
  30. #endif /* gxstdio_INCLUDED */