osdep.h 822 B

12345678910111213141516171819202122232425262728
  1. /*
  2. Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
  3. See the accompanying file LICENSE, version 1999-Oct-05 or later
  4. (the contents of which are also included in zip.h) for terms of use.
  5. If, for some reason, both of these files are missing, the Info-ZIP license
  6. also may be found at: ftp://ftp.cdrom.com/pub/infozip/license.html
  7. */
  8. #include <io.h>
  9. #include <sys/stat.h>
  10. #include <sys/xglob.h>
  11. #ifdef ZCRYPT_INTERNAL
  12. # include <process.h> /* getpid() declaration for srand seed */
  13. #endif
  14. #define USE_CASE_MAP
  15. #define ROUNDED_TIME(time) (((time) + 1) & (~1))
  16. #define PROCNAME(n) (action == ADD || action == UPDATE ? wild(n) : \
  17. procname(n, 1))
  18. #ifdef HAVE_MBCTYPE_H
  19. # include <mbctype.h>
  20. #else
  21. # define ismbblead(c) (0x80 <= (c) && ((c) < 0xa0 || 0xe0 <= (c)))
  22. #endif