浏览代码

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

Ozkan Sezer 1 年之前
父节点
当前提交
50fbae9302
共有 1 个文件被更改,包括 7 次插入0 次删除
  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 {