summaryrefslogtreecommitdiff
path: root/wince/errno.c
blob: 28cd089935aabbfcf55f4c3767722c4d1168b0e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
// "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;
}