From 06c28f035f6ea4315a1a94b4b4d87e051ab64e42 Mon Sep 17 00:00:00 2001 From: Rodrigo Madera Date: Sat, 27 Mar 2021 14:21:36 -0300 Subject: [PATCH] Produce a compile-time error if none of the three implementations were requested. --- tray.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tray.h b/tray.h index 86356db..c6ffe29 100644 --- a/tray.h +++ b/tray.h @@ -361,10 +361,7 @@ static void tray_exit() { UnregisterClass(WC_TRAY_CLASS_NAME, GetModuleHandle(NULL)); } #else -static int tray_init(struct tray *tray) { return -1; } -static int tray_loop(int blocking) { return -1; } -static void tray_update(struct tray *tray) {} -static void tray_exit(); +#error Please define TRAY_WINAPI, TRAY_APPINDICATOR or TRAY_APPKIT before including this file. #endif #endif /* TRAY_H */