Fixed wine_ldt_copy importing on cygwin.

This commit is contained in:
Jeroen Janssen 2003-01-15 00:44:00 +00:00 committed by Alexandre Julliard
parent 9b0b1e078a
commit 95209b3937
2 changed files with 12 additions and 1 deletions

View File

@ -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 */

View File

@ -28,6 +28,7 @@
#include <errno.h>
#include "winbase.h"
#define WINE_EXPORT_LDT_COPY
#include "wine/library.h"
#ifdef __i386__