Kaydet (Commit) 30340b5b authored tarafından Enrico Tröger's avatar Enrico Tröger

Don't include windows.h in geany.h.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@625 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 1511e756
......@@ -44,8 +44,6 @@
#if defined(G_OS_WIN32) || defined(WIN32)
# include <windows.h>
# include <commdlg.h>
# define GEANY_WIN32
# define GEANY_DATA_DIR PACKAGE_DATA_DIR
#else
......
......@@ -27,6 +27,9 @@
#ifdef GEANY_WIN32
#include <windows.h>
#include <commdlg.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
......@@ -336,15 +339,15 @@ gboolean win32_message_dialog(GtkMessageType type, const gchar *title, const gch
// convert the Unicode chars to wide chars
/// TODO test if LANG == C then possibly skip conversion
MultiByteToWideChar(CP_UTF8, 0, msg, -1, w_msg, sizeof(w_msg)/sizeof(w_msg[0]));
MultiByteToWideChar(CP_UTF8, 0, msg, -1, w_msg, sizeof(w_msg)/sizeof(w_msg[0]));
MultiByteToWideChar(CP_UTF8, 0, title, -1, w_title, sizeof(w_title)/sizeof(w_title[0]));
// display the message box
rc = MessageBoxW(NULL, w_msg, w_title, t);
if (type == GTK_MESSAGE_QUESTION && rc != IDYES)
ret = FALSE;
return ret;
}
......@@ -358,7 +361,7 @@ gint win32_message_dialog_unsaved(const gchar *title, const gchar *msg)
// convert the Unicode chars to wide chars
/// TODO test if LANG == C then possibly skip conversion
MultiByteToWideChar(CP_UTF8, 0, msg, -1, w_msg, sizeof(w_msg)/sizeof(w_msg[0]));
MultiByteToWideChar(CP_UTF8, 0, msg, -1, w_msg, sizeof(w_msg)/sizeof(w_msg[0]));
MultiByteToWideChar(CP_UTF8, 0, title, -1, w_title, sizeof(w_title)/sizeof(w_title[0]));
ret = MessageBoxW(NULL, w_msg, w_title, MB_YESNOCANCEL | MB_ICONQUESTION);
......
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