editor: explicit C-declaration around sync/data.h
Trade an explicit extern "C" declaration for three defined(__cplusplus) wrapped ones.
This commit is contained in:
parent
12595c74f5
commit
e640a4ab6a
@ -4,7 +4,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
extern "C" {
|
||||
#include "../sync/data.h"
|
||||
}
|
||||
|
||||
#include <stack>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
@ -7,10 +7,6 @@
|
||||
|
||||
#include "track.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct sync_data {
|
||||
struct sync_track **tracks;
|
||||
size_t num_tracks;
|
||||
@ -28,8 +24,4 @@ static inline int sync_find_track(struct sync_data *data, const char *name)
|
||||
void sync_data_deinit(struct sync_data *);
|
||||
int sync_create_track(struct sync_data *, const char *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SYNC_DATA_H */
|
||||
|
||||
@ -8,10 +8,6 @@
|
||||
#include "track.h"
|
||||
#include "data.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct sync_device {
|
||||
char *base;
|
||||
struct sync_data data;
|
||||
@ -24,8 +20,4 @@ struct sync_device {
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SYNC_DEVICE_H */
|
||||
|
||||
@ -9,10 +9,6 @@
|
||||
#include <stdlib.h>
|
||||
#include "base.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum key_type {
|
||||
KEY_STEP, /* stay constant */
|
||||
KEY_LINEAR, /* lerp to the next value */
|
||||
@ -52,8 +48,4 @@ static inline int is_key_frame(const struct sync_track *t, size_t row)
|
||||
|
||||
#endif /* !defined(SYNC_PLAYER) */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SYNC_TRACK_H */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user