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:
parent
1d4f26f325
commit
90f37b8183
@ -734,6 +734,7 @@ struct IsoFileSource_Iface
|
|||||||
*/
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef Libisofs_h_as_cpluspluS
|
||||||
/**
|
/**
|
||||||
* An IsoFile Source is a POSIX abstraction of a file.
|
* An IsoFile Source is a POSIX abstraction of a file.
|
||||||
*
|
*
|
||||||
@ -745,6 +746,7 @@ struct iso_file_source
|
|||||||
int refcount;
|
int refcount;
|
||||||
void *data;
|
void *data;
|
||||||
};
|
};
|
||||||
|
#endif /* ! Libisofs_h_as_cpluspluS */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Representation of file contents. It is an stream of bytes, functionally
|
* 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.
|
* Representation of file contents as a stream of bytes.
|
||||||
*
|
*
|
||||||
@ -966,6 +969,7 @@ struct iso_stream
|
|||||||
int refcount;
|
int refcount;
|
||||||
void *data;
|
void *data;
|
||||||
};
|
};
|
||||||
|
#endif /* ! Libisofs_h_as_cpluspluS */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user