NO! you break api. you made my e sit here with a segv in a getenv.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 7 Dec 2011 01:10:43 +0000 (01:10 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 7 Dec 2011 01:10:43 +0000 (01:10 +0000)
because now many libraries and api's don't have prototyopes for
malloc/calloc and much more and this goes horribly wrong especially on
64bit! the eina headers have provided these includes historically and
removing them is a BREAK in api. apps that used to compile and run
just fine now don't. it's unacceptable to break api.

i'm stuck here in unity for crying out loud! this deservves a big FAT
REVERT for that! :-P

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@65983 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/include/eina_array.h
src/include/eina_inline_array.x
src/include/eina_inline_f32p32.x
src/include/eina_inline_str.x
src/include/eina_inline_stringshare.x
src/include/eina_list.h
src/include/eina_log.h
src/include/eina_matrixsparse.h
src/include/eina_rbtree.h
src/include/eina_str.h
src/include/eina_unicode.h

index 6f0df45..d33f5e9 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef EINA_ARRAY_H_
 #define EINA_ARRAY_H_
 
+#include <stdlib.h>
+
 #include "eina_config.h"
 
 #include "eina_types.h"
index b946a79..0f85446 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <stddef.h>
 
+#include <stdio.h>
+
 /**
  * @cond LOCAL
  */
index 3c72ca2..73480de 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef EINA_INLINE_F32P32_X_
 # define EINA_INLINE_F32P32_X_
 
+#include <stdlib.h>
+
 static inline Eina_F32p32
 eina_f32p32_add(Eina_F32p32 a, Eina_F32p32 b)
 {
index bac55e7..2daeb85 100644 (file)
@@ -19,8 +19,6 @@
 #ifndef EINA_STR_INLINE_H_
 #define EINA_STR_INLINE_H_
 
-#include <string.h>
-
 /**
  * @addtogroup Eina_String_Group String
  *
index 1d56932..bfd7677 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef EINA_STRINGSHARE_INLINE_H_
 #define EINA_STRINGSHARE_INLINE_H_
 
+#include <string.h>
 #include "eina_stringshare.h"
 /**
  * @addtogroup Eina_Stringshare_Group Stringshare
index 246a589..8a8f25e 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef EINA_LIST_H_
 #define EINA_LIST_H_
 
+#include <stdlib.h>
+
 #include "eina_config.h"
 
 #include "eina_types.h"
index 9cd6152..8b00148 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef EINA_LOG_H_
 #define EINA_LOG_H_
 
+#include <stdlib.h>
 #include <stdarg.h>
 #include <sys/types.h>
 
index 2312822..97d1ca5 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef EINA_MATRIXSPARSE_H_
 #define EINA_MATRIXSPARSE_H_
 
+#include <stdlib.h>
+
 #include "eina_config.h"
 
 #include "eina_types.h"
index d275589..8e5b730 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef EINA_RBTREE_H__
 #define EINA_RBTREE_H__
 
+#include <stdlib.h>
+
 #include "eina_types.h"
 #include "eina_error.h"
 #include "eina_iterator.h"
index db2895f..32c1cc6 100644 (file)
@@ -2,6 +2,7 @@
 #define _EINA_STR_H
 
 #include <stddef.h>
+#include <string.h>
 
 #include "eina_types.h"
 
index 511520b..aed59af 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef EINA_UNICODE_H
 #define EINA_UNICODE_H
 
+#include <stdlib.h>
+
 #include "eina_config.h"
 #include "eina_types.h"