diff options
author | Vincent Geddes <vgeddes@src.gnome.org> | 2007-03-30 17:57:14 +0000 |
---|---|---|
committer | Vincent Geddes <vgeddes@src.gnome.org> | 2007-03-30 17:57:14 +0000 |
commit | ef4eac919ed7660b0daeb97acf9b3dd32a448ca7 (patch) | |
tree | e481c63c31f6a012e7f6d4b600cca854a4c2e590 /src | |
parent | dbb1c37ca1e22d8bc6590ad4cbfd1cf8f9074d84 (diff) | |
download | glade-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.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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 |