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).
This commit is contained in:
parent
780440dffe
commit
17d46813d8
@ -22,6 +22,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <libdivecomputer/shearwater_predator.h>
|
||||
#include <libdivecomputer/shearwater_petrel.h>
|
||||
#include <libdivecomputer/units.h>
|
||||
|
||||
#include "context-private.h"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user