mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
22 lines
539 B
C
22 lines
539 B
C
|
|
#ifndef foocdeclhfoo
|
||
|
|
#define foocdeclhfoo
|
||
|
|
|
||
|
|
/** \file
|
||
|
|
* C++ compatibility support */
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
/** If using C++ this macro enables C mode, otherwise does nothing */
|
||
|
|
#define PA_C_DECL_BEGIN extern "C" {
|
||
|
|
/** If using C++ this macros switches back to C++ mode, otherwise does nothing */
|
||
|
|
#define PA_C_DECL_END }
|
||
|
|
|
||
|
|
#else
|
||
|
|
/** If using C++ this macro enables C mode, otherwise does nothing */
|
||
|
|
#define PA_C_DECL_BEGIN
|
||
|
|
/** If using C++ this macros switches back to C++ mode, otherwise does nothing */
|
||
|
|
#define PA_C_DECL_END
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|