Mercurial > projects > ldc
diff lphobos/std/c/stdlib.d @ 473:373489eeaf90
Applied downs' lphobos update
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 04 Aug 2008 19:28:49 +0200 |
parents | 61615fa85940 |
children |
line wrap: on
line diff
--- a/lphobos/std/c/stdlib.d Mon Aug 04 19:08:39 2008 +0200 +++ b/lphobos/std/c/stdlib.d Mon Aug 04 19:28:49 2008 +0200 @@ -42,7 +42,7 @@ int system(char *); - pragma(LLVM_internal, "alloca") + pragma(alloca) void *alloca(uint); /// void *calloc(size_t, size_t); /// @@ -64,8 +64,11 @@ int random(int num); /// ditto void randomize(); /// ditto - int getErrno(); /// ditto - int setErrno(int); /// ditto + int* __errno_location(); + int getErrno() { return *__errno_location(); } + int setErrno(int i) { return *__errno_location = i; } + //int getErrno(); /// ditto + //int setErrno(int); /// ditto const int ERANGE = 34; // on both Windows and linux