Produce a compile-time error if none of the three implementations were requested.

This commit is contained in:
Rodrigo Madera
2021-11-09 12:24:49 +01:00
committed by Dmitry Mikushin
parent 758c780259
commit 06c28f035f
+1 -4
View File
@@ -361,10 +361,7 @@ static void tray_exit() {
UnregisterClass(WC_TRAY_CLASS_NAME, GetModuleHandle(NULL)); UnregisterClass(WC_TRAY_CLASS_NAME, GetModuleHandle(NULL));
} }
#else #else
static int tray_init(struct tray *tray) { return -1; } #error Please define TRAY_WINAPI, TRAY_APPINDICATOR or TRAY_APPKIT before including this file.
static int tray_loop(int blocking) { return -1; }
static void tray_update(struct tray *tray) {}
static void tray_exit();
#endif #endif
#endif /* TRAY_H */ #endif /* TRAY_H */