PageRenderTime 28ms CodeModel.GetById 23ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 5#include <zzip/conf.h>
 6#include <stdio.h>
 7#include <string.h>
 8
 9#ifdef ZZIP_HAVE_FNMATCH_H
10#include <fnmatch.h>
11#endif
12
13#ifdef ZZIP_HAVE_FNMATCH_H
14#define _zzip_fnmatch fnmatch
15# ifdef FNM_CASEFOLD
16# define _zzip_fnmatch_CASEFOLD FNM_CASEFOLD
17# else
18# define _zzip_fnmatch_CASEFOLD 0
19# endif
20#else
21# define _zzip_fnmatch_CASEFOLD 0
22/* if your system does not have fnmatch, we fall back to strcmp: */
23static int _zzip_fnmatch(char* pattern, char* string, int flags)
24{ 
25    fprintf (stderr, "<zzip:mmapped:strcmp>");
26    return strcmp (pattern, string); 
27}
28#endif
29
30#endif