mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Cleanup: remove includes from extern "C" block
In "core/save-html.h", the "core/dive.h" header was included in the extern "C" block. This is invalid, because "core/dive.h" included from C++ code contains Qt macros that expand to C++ templates. These in turn must not have extern "C" linkage, since a plain C-linker cannot handle such things. The only reason this worked is that in all cases "core/save-html.h" was included after "core/dive.h". The include of the latter in the former had therefore not effect. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9e1d83ca56
commit
d60ec98e8e
1 changed files with 3 additions and 3 deletions
|
@ -2,13 +2,13 @@
|
|||
#ifndef HTML_SAVE_H
|
||||
#define HTML_SAVE_H
|
||||
|
||||
#include "dive.h"
|
||||
#include "membuffer.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "dive.h"
|
||||
#include "membuffer.h"
|
||||
|
||||
void put_HTML_date(struct membuffer *b, struct dive *dive, const char *pre, const char *post);
|
||||
void put_HTML_depth(struct membuffer *b, struct dive *dive, const char *pre, const char *post);
|
||||
void put_HTML_airtemp(struct membuffer *b, struct dive *dive, const char *pre, const char *post);
|
||||
|
|
Loading…
Reference in a new issue