pidgin/win32/MinimizeToTray.h

Tue, 21 Jan 2025 10:49:29 -0600

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Tue, 21 Jan 2025 10:49:29 -0600
branch
release-2.x.y
changeset 43154
10ae9c0f0cbf
parent 15435
4b933b06d75e
child 18068
b6554e3c8224
permissions
-rw-r--r--

Fix invalid prototypes that will break with C23

Using `function()` used to mean "any number" of parameters, but as of C23, this
is now aligned with C++ and means _zero_ parameters. This will cause build
failures due to mismatched function parameters in GCC15, which switched to C23
by default.

Related to PIDGIN-18028, though I guess Gentoo didn't actually have the problem as they disabled Zephyr.

Testing Done:
Compiled with GCC15 without error.

Reviewed at https://reviews.imfreedom.org/r/3776/

14743
2324d3eee038 [gaim-migrate @ 17433]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
1 #ifndef _MINIMIZE_TO_TRAY_H_
2324d3eee038 [gaim-migrate @ 17433]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
2 #define _MINIMIZE_TO_TRAY_H_
2324d3eee038 [gaim-migrate @ 17433]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
3
2324d3eee038 [gaim-migrate @ 17433]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
4 void MinimizeWndToTray(HWND hWnd);
2324d3eee038 [gaim-migrate @ 17433]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
5 void RestoreWndFromTray(HWND hWnd);
2324d3eee038 [gaim-migrate @ 17433]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
6
2324d3eee038 [gaim-migrate @ 17433]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
7 #endif /* _MINIMIZE_TO_TRAY_H_ */

mercurial