From: mquinson Date: Mon, 8 Sep 2008 20:48:58 +0000 (+0000) Subject: Oups, commited a stupid check which will help me one day for the portability to AIX... X-Git-Tag: v3.3~203 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c60ecd167e796895eb98398295e320688ffe701b?ds=sidebyside Oups, commited a stupid check which will help me one day for the portability to AIX. In the meanwhile, it broke everything under linux git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5905 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index 8b5c8072a6..2a0c78bad5 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -60,7 +60,7 @@ static XBT_INLINE char *xbt_strdup(const char *s) { @hideinitializer */ static XBT_INLINE void *xbt_malloc(unsigned int n){ void *res; - if (n==0) xbt_die("malloc(0) is not portable"); +// if (n==0) xbt_die("malloc(0) is not portable"); res=malloc(n); if (!res) xbt_die(bprintf("Memory allocation of %d bytes failed",n)); @@ -71,7 +71,7 @@ static XBT_INLINE void *xbt_malloc(unsigned int n){ @hideinitializer */ static XBT_INLINE void *xbt_malloc0(unsigned int n) { void *res; - if (n==0) xbt_die("calloc(0) is not portable"); +// if (n==0) xbt_die("calloc(0) is not portable"); res=calloc(n,1); if (!res) xbt_die(bprintf("Memory callocation of %d bytes failed",n)); @@ -82,7 +82,7 @@ static XBT_INLINE void *xbt_malloc0(unsigned int n) { @hideinitializer */ static XBT_INLINE void *xbt_realloc(void*p,unsigned int s){ void *res=res; - if (s==0) xbt_die("realloc(0) is not portable"); +// if (s==0) xbt_die("realloc(0) is not portable"); if (s) { if (p) { res=realloc(p,s);