shithub: choc

ref: 71d316afb2ae7191a4ef6fac2d757238ae3616e1
dir: /wince/errno.c/

View raw version
//
// "Extension" implementation of errno.h for Windows CE.
//
// I (Simon Howard) release this file to the public domain.
//

#include <windows.h>

#include "errno.h"

// This should really be a thread-local variable.  Oh well.

static int my_errno;

int *_GetErrno()
{
    my_errno = GetLastError();
    return &my_errno;
}