Browse Source

tray, windows: define NOTIFYICON_VERSION_4 and NIF_SHOWTIP, if missing.

Ozkan Sezer 3 months ago
parent
commit
50fbae9302
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/tray/windows/SDL_tray.c

+ 7 - 0
src/tray/windows/SDL_tray.c

@@ -29,6 +29,13 @@
 
 #include <stdlib.h>
 
+#ifndef NOTIFYICON_VERSION_4
+#define NOTIFYICON_VERSION_4 4
+#endif
+#ifndef NIF_SHOWTIP
+#define NIF_SHOWTIP 0x00000080
+#endif
+
 #define WM_TRAYICON (WM_USER + 1)
 
 struct SDL_TrayMenu {