Solaris redefines ERR and CS, fixed occurances.

Solaris has TRAPNO in its sigcontext, added to sig_context.h
This commit is contained in:
Marcus Meissner 1998-11-06 16:30:41 +00:00 committed by Alexandre Julliard
parent 46b68f091c
commit e0e248eaee
5 changed files with 9 additions and 4 deletions

View file

@ -19,8 +19,8 @@
#include "task.h"
#include "except.h"
#include "win.h"
#include "debug.h"
#include "flatthunk.h"
#include "debug.h"
/* List of the 16-bit callback functions. This list is used */
@ -706,7 +706,7 @@ UINT32 WINAPI ThunkConnect16(
DWORD dwReason, /* [in] initialisation argument */
struct ThunkDataCommon *TD, /* [in/out] thunkbuffer */
LPSTR thunkfun32, /* [in] win32 thunkfunction */
WORD CS /* [in] CS of win16 dll */
WORD cs /* [in] CS of win16 dll */
) {
BOOL32 directionSL;

View file

@ -59,6 +59,8 @@ extern short debug_msg_enabled[][DEBUG_CLASS_COUNT];
#endif /* NO_DEBUG_MSGS */
/* define error macro regardless of what is configured */
/* Solaris got an 'ERR' define in <sys/reg.h> */
#undef ERR
#define ERR(ch, fmt, args...) DPRINTF_(err, ch, fmt, ## args)
#define MSG(format, args...) fprintf(stderr, format, ## args)

View file

@ -168,6 +168,9 @@ typedef struct _CONTEXT /* Note 1 */
#else
#define ESP_sig(context) ((context)->uc_mcontext.gregs[ESP])
#endif
#ifdef TRAPNO
#define TRAP_sig(context) ((context)->uc_mcontext.gregs[TRAPNO])
#endif
#endif /* svr4 || SCO_DS */

View file

@ -30,11 +30,11 @@
#include "file.h"
#include "mmsystem.h"
#include "multimedia.h"
#include "debug.h"
#include "xmalloc.h"
#include "callback.h"
#include "module.h"
#include "selectors.h"
#include "debug.h"
int mciInstalledCount;
int mciInstalledListLen;

View file

@ -6,13 +6,13 @@
#include <assert.h>
#include <stdio.h>
#include "debug.h"
#include "winbase.h"
#include "winerror.h"
#include "heap.h"
#include "process.h"
#include "server.h"
#include "thread.h"
#include "debug.h"
#define HTABLE_SIZE 0x30 /* Handle table initial size */
#define HTABLE_INC 0x10 /* Handle table increment */