From 81c19446047c5b80e23487487e8c6793bae79944 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Mon, 26 Sep 2016 20:37:25 +0200 Subject: [PATCH] Include the public header in the implementation file. In the public header files, all symbols are marked extern C. When using a C compiler, there is usually no problem if the header isn't included in the C file. But the msvc build system uses the C++ compiler (due to the use of some C99 features not supported by the msvc C compiler). --- src/hw_ostc_parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hw_ostc_parser.c b/src/hw_ostc_parser.c index 48eae3d..2a43dee 100644 --- a/src/hw_ostc_parser.c +++ b/src/hw_ostc_parser.c @@ -22,6 +22,7 @@ #include #include +#include #include "libdivecomputer/units.h" #include "context-private.h"