go-notify-darwin

Rich notifications on macOS for Go
Log | Files | Refs | README | LICENSE

commit 22ffab1ebd1a9aac944f1e5fe844d41113aa2217
parent bc821b108ca70dcb4f21707acd059ec56edbc45d
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Wed, 18 Dec 2024 10:30:57 +0800

noti: add build constraints to objective-c code

Another attempt to fix build errors on non-darwin platforms.

Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>

Diffstat:
Mnoti.h | 2++
Mnoti.m | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/noti.h b/noti.h @@ -1,3 +1,5 @@ +//go:build darwin && cgo + #ifndef GO_NOTI_H #define GO_NOTI_H diff --git a/noti.m b/noti.m @@ -1,3 +1,5 @@ +//go:build darwin && cgo + #import <stdlib.h> #import "_cgo_export.h"