Revision: 2154 http://geany.svn.sourceforge.net/geany/?rev=2154&view=rev Author: eht16 Date: 2008-01-09 07:40:22 -0800 (Wed, 09 Jan 2008)
Log Message: ----------- Fix compile error on Windows. Don't use _waccess_s since it seems to be unavailable in MingW32.
Modified Paths: -------------- trunk/ChangeLog trunk/src/utils.c trunk/src/win32.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-01-09 13:36:22 UTC (rev 2153) +++ trunk/ChangeLog 2008-01-09 15:40:22 UTC (rev 2154) @@ -9,6 +9,9 @@ * src/msgwindow.c: Add workaround for display problem in Message window: Truncate displayed string at 1024 bytes if it is longer. + * src/utils.c, src/win32.v: + Fix compile error on Windows. + Don't use _waccess_s since it seems to be unavailable in MingW32.
2008-01-06 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/utils.c =================================================================== --- trunk/src/utils.c 2008-01-09 13:36:22 UTC (rev 2153) +++ trunk/src/utils.c 2008-01-09 15:40:22 UTC (rev 2154) @@ -741,10 +741,9 @@ ret = errno; else ret = 0; - +#endif g_free(file); return ret; -#endif }
Modified: trunk/src/win32.c =================================================================== --- trunk/src/win32.c 2008-01-09 13:36:22 UTC (rev 2153) +++ trunk/src/win32.c 2008-01-09 15:40:22 UTC (rev 2154) @@ -561,7 +561,7 @@ { static wchar_t w_dir[512]; MultiByteToWideChar(CP_UTF8, 0, dir, -1, w_dir, sizeof w_dir); - if (_waccess_s(w_dir, R_OK | W_OK) != 0) + if (_waccess(w_dir, R_OK | W_OK) != 0) return errno; else return 0; @@ -630,7 +630,6 @@ fp = _fdopen(hConHandle, "w"); *stderr = *fp; setvbuf(stderr, NULL, _IONBF, 0); - }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.