Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : proto/evil

Dir     : e17/proto/evil/src/lib


Modified Files:
        Evil.h evil.c 


Log Message:
fix compilation with cegcc and minor fixing

* COPYING:
copyright update

* configure.ac:
* src/lib/Evil.h:
* src/lib/dlfcn/dlfcn.h:
* src/lib/mman/sys/mman.h:
define EFL_EVIL_BUILD in config.h for managing correctly EAPI

* src/bin/test_pipe.c:
stdio.h is needed after winsock2.h for mingw32ce

* src/lib/dlfcn/dlfcn.c (get_last_error), (dlopen), (dlsym):
* src/lib/evil.c:
fix some heafer files inclusion on cegc platform.
first step of mingw32ce support

* src/lib/mman/mman.c:
define _get_osfhandle for mingw32ce


===================================================================
RCS file: /cvs/e/e17/proto/evil/src/lib/Evil.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Evil.h      2 Mar 2008 07:03:36 -0000       1.3
+++ Evil.h      5 Mar 2008 09:19:38 -0000       1.4
@@ -6,11 +6,15 @@
 #endif /* EAPI */
 
 #ifdef _WIN32
-# ifdef DLL_EXPORT
-#  define EAPI __declspec(dllexport)
+# ifdef EFL_EVIL_BUILD
+#  ifdef DLL_EXPORT
+#   define EAPI __declspec(dllexport)
+#  else
+#   define EAPI
+#  endif /* ! DLL_EXPORT */
 # else
 #  define EAPI __declspec(dllimport)
-# endif
+# endif /* ! EFL_EVIL_BUILD */
 #endif /* _WIN32 */
 
 #ifdef __cplusplus
===================================================================
RCS file: /cvs/e/e17/proto/evil/src/lib/evil.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- evil.c      29 Feb 2008 22:42:14 -0000      1.2
+++ evil.c      5 Mar 2008 09:19:38 -0000       1.3
@@ -1,16 +1,20 @@
 #include <stdio.h>
 
+#define WIN32_LEAN_AND_MEAN
+#include <winsock2.h>
+#undef WIN32_LEAN_AND_MEAN
+
 #ifndef __CEGCC__
 # include <errno.h>
-# define WIN32_LEAN_AND_MEAN
-# include <winsock2.h>
-# undef WIN32_LEAN_AND_MEAN
 # include <sys/locking.h>
 # include <io.h>
 # include <share.h>
 # include <shlobj.h>
 # include <objidl.h>
-#endif /* ! __CEGCC__ */
+#else
+# include <sys/syslimits.h>
+#endif /* __CEGCC__ */
+
 #include <sys/types.h>
 #include <sys/timeb.h>
 #include <fcntl.h>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to