Compy 0.2.0
A lightweight RTSP 1.0 server library for embedded systems
Loading...
Searching...
No Matches
compiler_attrs.h
1#pragma once
2
3#ifdef __GNUC__
4#define COMPY_PRIV_GNUC_ATTR(attr) __attribute__((attr))
5#else
6#define COMPY_PRIV_GNUC_ATTR(_attr)
7#endif
8
9#if defined(__GNUC__) && !defined(__clang__)
10#define COMPY_PRIV_GCC_ATTR(attr) __attribute__((attr))
11#else
12#define COMPY_PRIV_GCC_ATTR(_attr)
13#endif
14
15#define COMPY_PRIV_MUST_USE COMPY_PRIV_GNUC_ATTR(warn_unused_result)