Verified Commit c87ac46e authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Fix missing windows includes for userinfo

This fixes the windows build by adding some missing
includes. QtGlobal is required to use the Q_OS_WIN macro.
parent 155d37a9
Pipeline #46321 passed with stage
in 19 minutes and 8 seconds
......@@ -9,6 +9,9 @@
*/
#include "userinfo.h"
#include <QtGlobal>
#ifdef Q_OS_WIN
#include "userinfo_win_p.h"
#endif
......
......@@ -8,6 +8,7 @@
*/
#include "userinfo_win_p.h"
#include "kleopatra_debug.h"
/* Use Windows API to query the user name and email.
EXTENDED_NAME_FORMAT is documented in MSDN */
......
......@@ -14,6 +14,8 @@
#define SECURITY_WIN32
#include <secext.h> // For GetUserNameEx
#include <QString>
QString win_get_user_name(EXTENDED_NAME_FORMAT what);
#endif // __KLEOPATRA_UTILS_USERINFO_WIN_P_H__
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment