Enlightenment CVS committal
Author : doursse
Project : e17
Module : proto/evil
Dir : e17/proto/evil/src/lib
Modified Files:
Evil.h evil.c
Log Message:
* src/lib/Evil.h:
add strdup define
* src/lib/evil.c: (evil_tmpdir_get), (evil_homedir_get):
include stdlib.h to define MB_CUR_MAX
On Windows CE, tmpdir and homedir are defined as "\windows"
* src/lib/mman/mman.c: (mmap), (munmap):
compile the big fat hack of mmap only on Windows CE
===================================================================
RCS file: /cvs/e/e17/proto/evil/src/lib/Evil.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- Evil.h 8 Jun 2008 21:39:49 -0000 1.16
+++ Evil.h 9 Jun 2008 18:35:49 -0000 1.17
@@ -380,6 +380,7 @@
# define mkdir(p,m) _mkdir(p)
# define getcwd(b,s) _getcwd((b),(s))
# define lstat(f,s) _stat((f),(s))
+# define strdup(s) _strdup(s)
# endif
#endif
===================================================================
RCS file: /cvs/e/e17/proto/evil/src/lib/evil.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- evil.c 8 Jun 2008 21:39:49 -0000 1.11
+++ evil.c 9 Jun 2008 18:35:49 -0000 1.12
@@ -2,6 +2,7 @@
#include <winsock2.h>
#undef WIN32_LEAN_AND_MEAN
+#include <stdlib.h>
#include <stdio.h>
#ifndef __CEGCC__
@@ -423,6 +424,9 @@
const char *
evil_tmpdir_get(void)
{
+#ifdef _WIN32_WCE
+ return "\\windows";
+#else
char *tmpdir;
tmpdir = getenv("TMP");
@@ -432,11 +436,15 @@
if (!tmpdir) tmpdir="C:\\";
return tmpdir;
+#endif /* ! _WIN32_WCE */
}
const char *
evil_homedir_get(void)
{
+#ifdef _WIN32_WCE
+ return "\\windows";
+#else
char *homedir;
homedir = getenv("HOME");
@@ -445,6 +453,7 @@
if (!homedir) homedir="C:\\";
return homedir;
+#endif /* ! _WIN32_WCE */
}
char *
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs