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:
Lutz Mueller
2002-06-06 08:05:33 +00:00
parent 49ee42321a
commit 6f74657f7e
2 changed files with 9 additions and 3 deletions

View File

@@ -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.

View File

@@ -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) {