mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00
16 lines
197 B
C
16 lines
197 B
C
|
|
/* Make D independent of all the various ways errno can be defined.
|
|
*/
|
|
|
|
#include <errno.h>
|
|
|
|
int getErrno()
|
|
{
|
|
return errno;
|
|
}
|
|
|
|
int setErrno(int newno)
|
|
{
|
|
errno = newno;
|
|
return newno;
|
|
}
|