Skip to content
Snippets Groups Projects
Commit b6e8a651 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[-] max function is already defined in sys/param.h

parent 986c1e7d
No related branches found
No related tags found
No related merge requests found
...@@ -34,11 +34,6 @@ ...@@ -34,11 +34,6 @@
#define STREAM_CH_CHAIN_PKT_TYPE_DATUM 0x02 #define STREAM_CH_CHAIN_PKT_TYPE_DATUM 0x02
#define STREAM_CH_CHAIN_PKT_TYPE_GLOVAL_DB 0xff #define STREAM_CH_CHAIN_PKT_TYPE_GLOVAL_DB 0xff
#define max(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })
typedef struct stream_ch_chain_pkt_hdr{ typedef struct stream_ch_chain_pkt_hdr{
dap_chain_id_t chain_id; dap_chain_id_t chain_id;
uint8_t type; // Chain data type uint8_t type; // Chain data type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment