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:
Erik Faye-Lund 2010-07-06 23:00:31 +02:00
parent 12595c74f5
commit e640a4ab6a
4 changed files with 3 additions and 24 deletions

View File

@ -4,7 +4,10 @@
#pragma once
extern "C" {
#include "../sync/data.h"
}
#include <stack>
#include <list>
#include <vector>

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */