mirror of
https://github.com/apache/nuttx.git
synced 2026-09-12 13:40:14 +00:00
sched/signal: Fix compilation errors for MSVC.
This commit removed empty struct to fix compilation errors for the MSVC compiler. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
parent
39576af753
commit
c0ae6525c4
3 changed files with 8 additions and 3 deletions
|
|
@ -65,11 +65,9 @@
|
|||
|
||||
struct sigwork_s
|
||||
{
|
||||
#ifdef CONFIG_SIG_EVTHREAD
|
||||
struct work_s work; /* Work queue structure */
|
||||
union sigval value; /* Data passed with notification */
|
||||
sigev_notify_function_t func; /* Notification function */
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
@ -642,7 +640,7 @@ int nxsig_notification(pid_t pid, FAR struct sigevent *event,
|
|||
#ifdef CONFIG_SIG_EVTHREAD
|
||||
void nxsig_cancel_notification(FAR struct sigwork_s *work);
|
||||
#else
|
||||
# define nxsig_cancel_notification(work) (void)(work)
|
||||
# define nxsig_cancel_notification(work)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue