From 95209b3937c748f366232ca578356b54211a6933 Mon Sep 17 00:00:00 2001 From: Jeroen Janssen Date: Wed, 15 Jan 2003 00:44:00 +0000 Subject: [PATCH] Fixed wine_ldt_copy importing on cygwin. --- include/wine/library.h | 12 +++++++++++- library/ldt.c | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/wine/library.h b/include/wine/library.h index 8d24128ad54..ee34e761984 100644 --- a/include/wine/library.h +++ b/include/wine/library.h @@ -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 ); /* 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 */ unsigned long limit[8192]; /* limit in bytes or 0 if entry is free */ diff --git a/library/ldt.c b/library/ldt.c index 1d0eca018b6..1d1c2aed146 100644 --- a/library/ldt.c +++ b/library/ldt.c @@ -28,6 +28,7 @@ #include #include "winbase.h" +#define WINE_EXPORT_LDT_COPY #include "wine/library.h" #ifdef __i386__