From a2758b27e6498bc3abc05f7c56c22aa5c949249b Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 11 Sep 2010 19:18:42 +0200 Subject: [PATCH] Automatic C++ detection by using macro __cplusplus --- libisofs/libisofs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libisofs/libisofs.h b/libisofs/libisofs.h index 2abeea4..f3dc4ab 100644 --- a/libisofs/libisofs.h +++ b/libisofs/libisofs.h @@ -734,7 +734,9 @@ struct IsoFileSource_Iface */ }; +#ifndef __cplusplus #ifndef Libisofs_h_as_cpluspluS + /** * An IsoFile Source is a POSIX abstraction of a file. * @@ -746,7 +748,9 @@ struct iso_file_source int refcount; void *data; }; + #endif /* ! Libisofs_h_as_cpluspluS */ +#endif /* ! __cplusplus */ /** * Representation of file contents. It is an stream of bytes, functionally @@ -957,7 +961,9 @@ struct IsoStream_Iface }; +#ifndef __cplusplus #ifndef Libisofs_h_as_cpluspluS + /** * Representation of file contents as a stream of bytes. * @@ -969,7 +975,9 @@ struct iso_stream int refcount; void *data; }; + #endif /* ! Libisofs_h_as_cpluspluS */ +#endif /* ! __cplusplus */ /**