Commit 3944090e authored by Alexandre Julliard's avatar Alexandre Julliard

Don't need to reference external errno since non-reentrant Xlib is no

longer supported.
parent 019a7f3d
...@@ -18,25 +18,25 @@ ...@@ -18,25 +18,25 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
/* Get pointers to the static errno and h_errno variables used by Xlib. This #include "config.h"
must be done before including <errno.h> makes the variables invisible. */
/* default errno before threading is initialized */
static int *default_errno_location(void) static int *default_errno_location(void)
{ {
extern int errno; static int errno;
return &errno; return &errno;
} }
/* default h_errno before threading is initialized */
static int *default_h_errno_location(void) static int *default_h_errno_location(void)
{ {
extern int h_errno; static int h_errno;
return &h_errno; return &h_errno;
} }
int* (*wine_errno_location)(void) = default_errno_location; int* (*wine_errno_location)(void) = default_errno_location;
int* (*wine_h_errno_location)(void) = default_h_errno_location; int* (*wine_h_errno_location)(void) = default_h_errno_location;
#include "config.h"
/*********************************************************************** /***********************************************************************
* __errno_location/__error/___errno * __errno_location/__error/___errno
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment