summaryrefslogtreecommitdiff
path: root/libgphoto2_port
diff options
context:
space:
mode:
authorMichael Fink <michael.fink@asamnet.de>2019-01-11 19:49:36 +0100
committerMichael Fink <michael.fink@asamnet.de>2019-01-11 19:49:36 +0100
commitc9e2629b84a02ad7c8bbaa1119c77fd7b3b25675 (patch)
treee5a9fee46fdafd5416b66b75f763db07d20623e8 /libgphoto2_port
parent78d32ea109998572adf0221d5da78bedf1005cbe (diff)
downloadlibgphoto2-c9e2629b84a02ad7c8bbaa1119c77fd7b3b25675.tar.gz
fixed compiler error when using #warning on Visual Studio compiler
Diffstat (limited to 'libgphoto2_port')
-rw-r--r--libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c2
1 files changed, 2 insertions, 0 deletions
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 <stdio.h>
#ifdef HAVE_REGEX
#include <regex.h>
+#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