From baebbc3d8ef218824c0f3418f66a39c3b34100b0 Mon Sep 17 00:00:00 2001 From: Ole Aamot Date: Mon, 17 Jul 2000 17:46:39 +0000 Subject: [PATCH] Added #ifdef's for GPIO_USB, GPIO_IEEE1394 and GPIO_NETWORK git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@687 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2/core.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libgphoto2/core.c b/libgphoto2/core.c index b8d8f2c59..7e0aa9e7c 100644 --- a/libgphoto2/core.c +++ b/libgphoto2/core.c @@ -152,15 +152,21 @@ int gp_port_info(int port_number, CameraPortInfo *info) { case GPIO_DEVICE_PARALLEL: info->type = GP_PORT_PARALLEL; break; - case GPIO_DEVICE_USB: +#ifdef GPIO_USB + case GPIO_DEVICE_USB: info->type = GP_PORT_USB; break; - case GPIO_DEVICE_IEEE1394: +#endif +#ifdef GPIO_IEEE1394 + case GPIO_DEVICE_IEEE1394: info->type = GP_PORT_IEEE1394; break; - case GPIO_DEVICE_NETWORK: +#endif +#ifdef GPIO_NETWORK + case GPIO_DEVICE_NETWORK: info->type = GP_PORT_NETWORK; break; +#endif default: info->type = GP_PORT_NONE; }