Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : proto/evil

Dir     : e17/proto/evil/src/lib


Modified Files:
        Evil.h 


Log Message:
* src/lib/Evil.h:
add defines for vc++. Thanks to Dmitriy Mazovka

===================================================================
RCS file: /cvs/e/e17/proto/evil/src/lib/Evil.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- Evil.h      10 Jun 2008 07:16:53 -0000      1.18
+++ Evil.h      11 Jun 2008 21:34:09 -0000      1.19
@@ -17,21 +17,6 @@
 # endif /* ! EFL_EVIL_BUILD */
 #endif /* _WIN32 */
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#undef WIN32_LEAN_AND_MEAN
-
-#ifdef PATH_MAX
-# undef PATH_MAX
-#endif /* PATH_MAX */
-
-#define PATH_MAX MAX_PATH
-
 
 /**
  * @mainpage Evil
@@ -67,13 +52,25 @@
  * the Unix versions.
  */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#undef WIN32_LEAN_AND_MEAN
+
 #include <stdlib.h>
 #include <sys/time.h>
 #include <limits.h>
+#include <sys/stat.h>
 
-#ifdef __CEGCC__
-# include <sys/syslimits.h>     /* for PATH_MAX */
-#endif
+#ifdef PATH_MAX
+# undef PATH_MAX
+#endif /* PATH_MAX */
+
+#define PATH_MAX MAX_PATH
 
 
 #ifndef __CEGCC__
@@ -525,6 +522,27 @@
 #endif /* UNICODE */
 
 EAPI char *evil_last_error_get(void);
+
+
+#ifdef _MSC_VER
+
+typedef int pid_t;
+
+typedef long ssize_t;
+
+typedef unsigned short mode_t;
+
+#define F_OK 0  /* Check for file existence */
+#define X_OK 1  /* MS access() doesn't check for execute permission. */
+#define W_OK 2  /* Check for write permission */
+#define R_OK 4  /* Check for read permission */
+
+#define _S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC)
+#define _S_IXUSR _S_IEXEC
+#define _S_IWUSR _S_IWRITE
+#define _S_IRUSR _S_IREAD
+
+#endif /* _MSC_VER */
 
 
 #if defined(__MSDOS__) || defined(__EMX__) || \



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to