Fixed wine_ldt_copy importing on cygwin.
This commit is contained in:
parent
9b0b1e078a
commit
95209b3937
|
@ -72,7 +72,17 @@ extern void wine_ldt_get_entry( unsigned short sel, LDT_ENTRY *entry );
|
||||||
extern int wine_ldt_set_entry( unsigned short sel, const LDT_ENTRY *entry );
|
extern int wine_ldt_set_entry( unsigned short sel, const LDT_ENTRY *entry );
|
||||||
|
|
||||||
/* the local copy of the LDT */
|
/* the local copy of the LDT */
|
||||||
extern struct __wine_ldt_copy
|
#ifdef __CYGWIN__
|
||||||
|
# ifdef WINE_EXPORT_LDT_COPY
|
||||||
|
# define WINE_LDT_EXTERN __declspec(dllexport)
|
||||||
|
# else
|
||||||
|
# define WINE_LDT_EXTERN __declspec(dllimport)
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define WINE_LDT_EXTERN extern
|
||||||
|
#endif
|
||||||
|
|
||||||
|
WINE_LDT_EXTERN struct __wine_ldt_copy
|
||||||
{
|
{
|
||||||
void *base[8192]; /* base address or 0 if entry is free */
|
void *base[8192]; /* base address or 0 if entry is free */
|
||||||
unsigned long limit[8192]; /* limit in bytes or 0 if entry is free */
|
unsigned long limit[8192]; /* limit in bytes or 0 if entry is free */
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
|
#define WINE_EXPORT_LDT_COPY
|
||||||
#include "wine/library.h"
|
#include "wine/library.h"
|
||||||
|
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
|
|
Loading…
Reference in New Issue