cdecl.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef foopulsecdeclhfoo
  2. #define foopulsecdeclhfoo
  3. /***
  4. This file is part of PulseAudio.
  5. Copyright 2004-2006 Lennart Poettering
  6. PulseAudio is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU Lesser General Public License as published
  8. by the Free Software Foundation; either version 2.1 of the License,
  9. or (at your option) any later version.
  10. PulseAudio is distributed in the hope that it will be useful, but
  11. WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. General Public License for more details.
  14. You should have received a copy of the GNU Lesser General Public License
  15. along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
  16. ***/
  17. /** \file
  18. * C++ compatibility support */
  19. #ifdef __cplusplus
  20. /** If using C++ this macro enables C mode, otherwise does nothing */
  21. #define PA_C_DECL_BEGIN extern "C" {
  22. /** If using C++ this macros switches back to C++ mode, otherwise does nothing */
  23. #define PA_C_DECL_END }
  24. #else
  25. /** If using C++ this macro enables C mode, otherwise does nothing */
  26. #define PA_C_DECL_BEGIN
  27. /** If using C++ this macros switches back to C++ mode, otherwise does nothing */
  28. #define PA_C_DECL_END
  29. #endif
  30. #endif