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
This commit is contained in:
Ole Aamot
2000-07-17 17:46:39 +00:00
parent 071f613c73
commit baebbc3d8e

View File

@@ -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;
}