From 966fcbd4c226d8c433b6e9f9dbd28c5efd442d82 Mon Sep 17 00:00:00 2001 From: dyniusz Date: Thu, 4 May 2017 12:17:34 -0700 Subject: Adjustments to support C++ engines --- file.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'file.h') diff --git a/file.h b/file.h index 9801bb58..4c2ebd4a 100644 --- a/file.h +++ b/file.h @@ -187,9 +187,15 @@ extern void close_and_free_files(struct thread_data *); extern uint64_t get_start_offset(struct thread_data *, struct fio_file *); extern int __must_check setup_files(struct thread_data *); extern int __must_check file_invalidate_cache(struct thread_data *, struct fio_file *); +#ifdef __cplusplus +extern "C" { +#endif extern int __must_check generic_open_file(struct thread_data *, struct fio_file *); extern int __must_check generic_close_file(struct thread_data *, struct fio_file *); extern int __must_check generic_get_file_size(struct thread_data *, struct fio_file *); +#ifdef __cplusplus +} +#endif extern int __must_check file_lookup_open(struct fio_file *f, int flags); extern int __must_check pre_read_files(struct thread_data *); extern unsigned long long get_rand_file_size(struct thread_data *td); -- cgit v1.2.3