Merge pull request #348 from vividos/fix-warning-visualstudio

Fixed compiler error when using #warning on Visual Studio compiler
This commit is contained in:
Marcus Meissner
2019-01-12 09:45:18 +01:00
committed by GitHub

View File

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