Commit 96929d15 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

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

parent 31bb9219
...@@ -37,12 +37,14 @@ ...@@ -37,12 +37,14 @@
WINE_DEFAULT_DEBUG_CHANNEL(twain); WINE_DEFAULT_DEBUG_CHANNEL(twain);
#ifdef HAVE_GPHOTO2
static char* GPHOTO2_StrDup(const char* str) static char* GPHOTO2_StrDup(const char* str)
{ {
char* dst = HeapAlloc(GetProcessHeap(), 0, strlen(str)+1); char* dst = HeapAlloc(GetProcessHeap(), 0, strlen(str)+1);
strcpy(dst, str); strcpy(dst, str);
return dst; return dst;
} }
#endif
static void static void
load_filesystem(const char *folder) { load_filesystem(const char *folder) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment