Add define for undocumented status bar message SB_SETBORDERS.
[wine.git] / library / errno.c
blob63951e862687a5eb642bcf6eef0c0f6464e01522
1 /*
2 * Wine library reentrant errno support
4 * Copyright 1998 Alexandre Julliard
5 */
7 /* Get pointers to the static errno and h_errno variables used by Xlib. This
8 must be done before including <errno.h> makes the variables invisible. */
9 static int *default_errno_location(void)
11 extern int errno;
12 return &errno;
15 static int *default_h_errno_location(void)
17 extern int h_errno;
18 return &h_errno;
21 int* (*wine_errno_location)(void) = default_errno_location;
22 int* (*wine_h_errno_location)(void) = default_h_errno_location;
24 #include "config.h"
26 /***********************************************************************
27 * __errno_location/__error/___errno
29 * Get the per-thread errno location.
31 #ifdef ERRNO_LOCATION
32 int *ERRNO_LOCATION(void)
34 return wine_errno_location();
36 #endif /* ERRNO_LOCATION */
38 /***********************************************************************
39 * __h_errno_location
41 * Get the per-thread h_errno location.
43 int *__h_errno_location(void)
45 return wine_h_errno_location();