mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove __cplusplus ifdefs
Since all source files are now C++, this is redundant. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9065bf8622
commit
03b910ee7f
55 changed files with 37 additions and 347 deletions
|
@ -46,8 +46,6 @@ struct membuffer {
|
|||
char *buffer;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
// In C++ code use this - it automatically frees the buffer, when going out of scope.
|
||||
struct membufferpp : public membuffer {
|
||||
membufferpp();
|
||||
|
@ -55,7 +53,6 @@ struct membufferpp : public membuffer {
|
|||
};
|
||||
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define __printf(x, y) __attribute__((__format__(__printf__, x, y)))
|
||||
|
@ -116,8 +113,6 @@ extern void put_salinity(struct membuffer *, int, const char *, const char *);
|
|||
extern void put_degrees(struct membuffer *b, degrees_t value, const char *, const char *);
|
||||
extern void put_location(struct membuffer *b, const location_t *, const char *, const char *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue