From 6f74657f7e2ecfd06d7cb3c849a264758f7cf30e Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Thu, 6 Jun 2002 08:05:33 +0000 Subject: [PATCH] =?UTF-8?q?2002-06-06=20=20Lutz=20M=EF=BF=BDller=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Patrick Mansfield : * 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 --- libgphoto2_port/ChangeLog | 6 ++++++ libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/libgphoto2_port/ChangeLog b/libgphoto2_port/ChangeLog index 8a657e605..257e60bef 100644 --- a/libgphoto2_port/ChangeLog +++ b/libgphoto2_port/ChangeLog @@ -1,3 +1,9 @@ +2002-06-06 Lutz Müller + + Patch by Patrick Mansfield : + + * libgphoto2_port/gphoto2-port-info-list.c: #ifdef instead of #if + 2002-06-06 Lutz Müller * m4/documentation.m4: Fix this ugly output all over the place. diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c index 833def3df..0b7d1de5e 100644 --- a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c +++ b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c @@ -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) {