From c9e2629b84a02ad7c8bbaa1119c77fd7b3b25675 Mon Sep 17 00:00:00 2001 From: Michael Fink Date: Fri, 11 Jan 2019 19:49:36 +0100 Subject: [PATCH] fixed compiler error when using #warning on Visual Studio compiler --- libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c index ee9555065..743cd5642 100644 --- a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c +++ b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c @@ -31,6 +31,8 @@ #include #ifdef HAVE_REGEX #include +#elif defined(_MSC_VER) +#pragma message("We need regex.h, but it has not been detected.") #else #warning We need regex.h, but it has not been detected. #endif