mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-20 06:59:58 -05:00
Don't use __ in defines or declarations, it's reserved
SPA_TYPE -> SPA_TYPE_INFO for type info strings improve includes Fixes #115
This commit is contained in:
parent
6856f02cab
commit
3dc6820e9e
146 changed files with 890 additions and 951 deletions
|
|
@ -22,8 +22,8 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __SPA_UTILS_DEFS_H__
|
||||
#define __SPA_UTILS_DEFS_H__
|
||||
#ifndef SPA_UTILS_DEFS_H
|
||||
#define SPA_UTILS_DEFS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
@ -206,14 +206,14 @@ struct spa_fraction {
|
|||
|
||||
#define spa_strerror(err) \
|
||||
({ \
|
||||
int __err = -err; \
|
||||
int _err = -err; \
|
||||
if (SPA_RESULT_IS_ASYNC(err)) \
|
||||
__err = EINPROGRESS; \
|
||||
strerror(__err); \
|
||||
_err = EINPROGRESS; \
|
||||
strerror(_err); \
|
||||
})
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* __SPA_UTILS_DEFS_H__ */
|
||||
#endif /* SPA_UTILS_DEFS_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue