2002-06-06 Lutz M�ller <lutz@users.sourceforge.net>
Patch by Patrick Mansfield <patman@aracnet.com>: * libgphoto2_port/gphoto2-port-info-list.c: #ifdef instead of #if git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4627 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2002-06-06 Lutz Müller <lutz@users.sourceforge.net>
|
||||
|
||||
Patch by Patrick Mansfield <patman@aracnet.com>:
|
||||
|
||||
* libgphoto2_port/gphoto2-port-info-list.c: #ifdef instead of #if
|
||||
|
||||
2002-06-06 Lutz Müller <lutz@users.sourceforge.net>
|
||||
|
||||
* m4/documentation.m4: Fix this ugly output all over the place.
|
||||
|
||||
@@ -403,7 +403,7 @@ gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path)
|
||||
{
|
||||
int i, result, generic;
|
||||
regex_t pattern;
|
||||
#if HAVE_GNU_REGEX
|
||||
#ifdef HAVE_GNU_REGEX
|
||||
const char *rv;
|
||||
#else
|
||||
regmatch_t match;
|
||||
@@ -432,7 +432,7 @@ gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path)
|
||||
"Trying '%s'...", list->info[i].path);
|
||||
|
||||
/* Compile the pattern */
|
||||
#if HAVE_GNU_REGEX
|
||||
#ifdef HAVE_GNU_REGEX
|
||||
memset (&pattern, 0, sizeof (pattern));
|
||||
rv = re_compile_pattern (list->info[i].path,
|
||||
strlen (list->info[i].path), &pattern);
|
||||
@@ -456,7 +456,7 @@ gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path)
|
||||
#endif
|
||||
|
||||
/* Try to match */
|
||||
#if HAVE_GNU_REGEX
|
||||
#ifdef HAVE_GNU_REGEX
|
||||
result = re_match (&pattern, path, strlen (path), 0, NULL);
|
||||
regfree (&pattern);
|
||||
if (result < 0) {
|
||||
|
||||
Reference in New Issue
Block a user