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

This commit is contained in:
Rodrigo Madera
2021-03-27 14:21:36 -03:00
committed by Dmitry Mikushin
parent 758c780259
commit 06c28f035f

5
tray.h
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 */