修改mq为C++库并固定生产者和消费者

This commit is contained in:
lnk
2026-04-28 11:44:40 +08:00
parent b87da0f454
commit b1d8440e6a
9 changed files with 636 additions and 225 deletions

View File

@@ -49,7 +49,7 @@
#ifndef HIBYTE
#define HIBYTE(w) ((byte_t)((uint16_t)(w) >> 8))
#endif
/*
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
@@ -57,7 +57,18 @@
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
*/
#ifndef __cplusplus
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif