From 266aa76591fd61a47763fc68c51104f3431b53fc Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Sat, 13 Apr 2013 15:07:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AE=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/LCUI_Build.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/include/LCUI_Build.h b/include/LCUI_Build.h index ecac2955..5719a6a9 100755 --- a/include/LCUI_Build.h +++ b/include/LCUI_Build.h @@ -71,20 +71,6 @@ /* LCUI模式,结合操作系统现有GUI系统,实现图形界面 */ #define LCUI_INIT_MODE_LCUI 3 -/* 用宏包装了WIN32和linux平台下的main函数 */ -#ifdef LCUI_BUILD_IN_WIN32 -#define LCUI_ARGLIST HINSTANCE hInstance,HINSTANCE hPrevInstance,PSTR szCmdLine,int iCmdShow -#define LCUIMainFunc WINAPI WinMain -#define LCUI_DEFAULT_ARG hInstance -#define LCUI_DEFAULT_CONFIG LCUI_INIT_MODE_AUTO,LCUI_DEFAULT_ARG -#else -#define LCUI_ARGLIST int argc, char *argv -#define LCUIMainFunc main -#define LCUI_DEFAULT_ARG NULL -#define LCUI_DEFAULT_CONFIG LCUI_INIT_MODE_AUTO,LCUI_DEFAULT_ARG -#endif - - #define LC_STYLE_LIBRARY_H #define LC_INPUT_METHOD_H @@ -204,4 +190,17 @@ #define LCUI_END_HEADER #endif +/* 用宏包装了WIN32和linux平台下的main函数 */ +#ifdef LCUI_BUILD_IN_WIN32 +#define LCUI_ARGLIST HINSTANCE hInstance,HINSTANCE hPrevInstance,PSTR szCmdLine,int iCmdShow +#define LCUIMainFunc WINAPI WinMain +#define LCUI_DEFAULT_ARG hInstance +#define LCUI_DEFAULT_CONFIG LCUI_INIT_MODE_AUTO,LCUI_DEFAULT_ARG +#else +#define LCUI_ARGLIST int argc, char *argv +#define LCUIMainFunc main +#define LCUI_DEFAULT_ARG NULL +#define LCUI_DEFAULT_CONFIG LCUI_INIT_MODE_AUTO,LCUI_DEFAULT_ARG +#endif + #endif