summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Geddes <vgeddes@src.gnome.org>2007-03-30 17:57:14 +0000
committerVincent Geddes <vgeddes@src.gnome.org>2007-03-30 17:57:14 +0000
commitef4eac919ed7660b0daeb97acf9b3dd32a448ca7 (patch)
treee481c63c31f6a012e7f6d4b600cca854a4c2e590 /src
parentdbb1c37ca1e22d8bc6590ad4cbfd1cf8f9074d84 (diff)
downloadglade-ef4eac919ed7660b0daeb97acf9b3dd32a448ca7.tar.gz
Fix warnings on when building on win32 platforms.
* src/main.c: Fix warnings on when building on win32 platforms. svn path=/trunk/; revision=1234
Diffstat (limited to 'src')
-rw-r--r--src/main.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 6c5322b0..4ba97534 100644
--- a/src/main.c
+++ b/src/main.c
@@ -29,12 +29,16 @@
#include <gladeui/glade-app.h>
#include <gladeui/glade-debug.h>
-#include <stdlib.h> /* defines __argc & __argv on the windows build */
+#include <stdlib.h>
#include <locale.h>
#include <glib.h>
#include <glib/gi18n.h>
#include <gmodule.h>
+#ifdef G_OS_WIN32
+# include <windows.h>
+#endif
+
#define APPLICATION_NAME (_("Glade"))
@@ -183,10 +187,13 @@ main (int argc, char *argv[])
}
#ifdef G_OS_WIN32
-/* In case we build this as a windowed application */
+
+/* In case we build this as a windowed application. */
#ifdef __GNUC__
-#define _stdcall __attribute__((stdcall))
+# ifndef _stdcall
+# define _stdcall __attribute__((stdcall))
+# endif
#endif
int _stdcall
@@ -197,4 +204,5 @@ WinMain (struct HINSTANCE__ *hInstance,
{
return main (__argc, __argv);
}
+
#endif