Gerald Pfeifer : gphoto2.ds: Only provide GPHOTO2_StrDup() when we have HAVE_GPHOTO2.

Alexandre Julliard julliard at winehq.org
Fri May 29 09:15:49 CDT 2009


Module: wine
Branch: master
Commit: 96929d151ec5ddc162131d8bd4618371886588bd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=96929d151ec5ddc162131d8bd4618371886588bd

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Thu May 28 21:25:35 2009 +0200

gphoto2.ds: Only provide GPHOTO2_StrDup() when we have HAVE_GPHOTO2.

---

 dlls/gphoto2.ds/gphoto2_main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/gphoto2.ds/gphoto2_main.c b/dlls/gphoto2.ds/gphoto2_main.c
index ab4f392..5d80d4c 100644
--- a/dlls/gphoto2.ds/gphoto2_main.c
+++ b/dlls/gphoto2.ds/gphoto2_main.c
@@ -37,12 +37,14 @@
 WINE_DEFAULT_DEBUG_CHANNEL(twain);
 
 
+#ifdef HAVE_GPHOTO2
 static char* GPHOTO2_StrDup(const char* str)
 {
     char* dst = HeapAlloc(GetProcessHeap(), 0, strlen(str)+1);
     strcpy(dst, str);
     return dst;
 }
+#endif
 
 static void
 load_filesystem(const char *folder) {




More information about the wine-cvs mailing list