wchar_.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* A substitute for ISO C99 <wchar.h>, for platforms that have issues.
  2. Copyright (C) 2007 Free Software Foundation, Inc.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2, or (at your option)
  6. any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software Foundation,
  13. Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
  14. /* Written by Eric Blake. */
  15. /*
  16. * ISO C 99 <wchar.h> for platforms that have issues.
  17. * <http://www.opengroup.org/susv3xbd/wchar.h.html>
  18. *
  19. * For now, this just ensures proper prerequisite inclusion order.
  20. */
  21. #ifndef _GL_WCHAR_H
  22. #define _GL_WCHAR_H
  23. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  24. <wchar.h>.
  25. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  26. included before <wchar.h>. */
  27. #include <stddef.h>
  28. #include <stdio.h>
  29. #include <time.h>
  30. /* Include the original <wchar.h>. */
  31. #include @ABSOLUTE_WCHAR_H@
  32. #endif /* _GL_WCHAR_H */