Enlightenment CVS committal Author : doursse Project : e17 Module : proto/evil
Dir : e17/proto/evil/src/lib/dlfcn Modified Files: Makefile.am dlfcn.c Log Message: * configure.ac: * src/bin/Makefile.am: * src/lib/Makefile.am: * src/lib/dlfcn/Makefile.am: * src/lib/mman/Makefile.am: use -Wl,--enable-auto-import with cegcc fix warning with newest autoconf * src/lib/dlfcn/dlfcn.c: (string_to_wchar): include wchar.h and fix warnings * src/lib/mman/mman.c: use relative path to include sys/mman.h =================================================================== RCS file: /cvs/e/e17/proto/evil/src/lib/dlfcn/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- Makefile.am 27 Feb 2008 21:01:30 -0000 1.1 +++ Makefile.am 22 Apr 2008 22:53:54 -0000 1.2 @@ -6,4 +6,4 @@ include_HEADERS = dlfcn.h libdl_la_SOURCES = dlfcn.c -libdl_la_LDFLAGS = -no-undefined -version-info @version_info@ +libdl_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ =================================================================== RCS file: /cvs/e/e17/proto/evil/src/lib/dlfcn/dlfcn.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- dlfcn.c 28 Mar 2008 17:05:16 -0000 1.4 +++ dlfcn.c 22 Apr 2008 22:53:54 -0000 1.5 @@ -5,6 +5,7 @@ #undef WIN32_LEAN_AND_MEAN #if defined(__CEGCC__) || defined(__MINGW32CE__) +# include <wchar.h> # include <limits.h> #endif /* __MINGW32CE__ */ @@ -31,7 +32,8 @@ int wsize; wsize = MultiByteToWideChar(CP_ACP, 0, text, strlen(text) + 1, NULL, 0); - if (wsize == 0 || wsize > ULONG_MAX/sizeof(wchar_t)) + if ((wsize == 0) || + (wsize > (int)(ULONG_MAX/sizeof(wchar_t)))) return NULL; wtext = malloc(wsize * sizeof(wchar_t)); ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs