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