Introduced macro Libisofs_h_as_cpluspluS to avoid the definitions of

struct iso_file_source and struct iso_stream when libisofs.h is included
in C++ files. (The definitions contain members with name "class".)
This commit is contained in:
Thomas Schmitt 2010-09-11 11:50:47 +02:00
parent 1d4f26f325
commit 90f37b8183
1 changed files with 4 additions and 0 deletions

View File

@ -734,6 +734,7 @@ struct IsoFileSource_Iface
*/
};
#ifndef Libisofs_h_as_cpluspluS
/**
* An IsoFile Source is a POSIX abstraction of a file.
*
@ -745,6 +746,7 @@ struct iso_file_source
int refcount;
void *data;
};
#endif /* ! Libisofs_h_as_cpluspluS */
/**
* Representation of file contents. It is an stream of bytes, functionally
@ -955,6 +957,7 @@ struct IsoStream_Iface
};
#ifndef Libisofs_h_as_cpluspluS
/**
* Representation of file contents as a stream of bytes.
*
@ -966,6 +969,7 @@ struct iso_stream
int refcount;
void *data;
};
#endif /* ! Libisofs_h_as_cpluspluS */
/**