/src/zziplib/zzip/__fnmatch.h

https://bitbucket.org/cabalistic/ogredeps/ · C++ Header · 30 lines · 24 code · 4 blank · 2 comment · 0 complexity · 85c08a4ab4d741b33a65952e3afb7e2c MD5 · raw file

  1. #ifndef __ZZIP_INTERNAL_FNMATCH_H
  2. #define __ZZIP_INTERNAL_FNMATCH_H
  3. /** included by fseeko.c, mmapped.c, memdisk.c */
  4. #include <zzip/conf.h>
  5. #include <stdio.h>
  6. #include <string.h>
  7. #ifdef ZZIP_HAVE_FNMATCH_H
  8. #include <fnmatch.h>
  9. #endif
  10. #ifdef ZZIP_HAVE_FNMATCH_H
  11. #define _zzip_fnmatch fnmatch
  12. # ifdef FNM_CASEFOLD
  13. # define _zzip_fnmatch_CASEFOLD FNM_CASEFOLD
  14. # else
  15. # define _zzip_fnmatch_CASEFOLD 0
  16. # endif
  17. #else
  18. # define _zzip_fnmatch_CASEFOLD 0
  19. /* if your system does not have fnmatch, we fall back to strcmp: */
  20. static int _zzip_fnmatch(char* pattern, char* string, int flags)
  21. {
  22. fprintf (stderr, "<zzip:mmapped:strcmp>");
  23. return strcmp (pattern, string);
  24. }
  25. #endif
  26. #endif