Skip to content

Commit

Permalink
OpenWatcom 1.9 warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann authored and PerditionC committed May 29, 2024
1 parent 3cd8edb commit 8dfb240
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions shell/cswapc.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#include <assert.h>
#include <suppl.h>
#include <mcb.h>
#include <portable.h>
#include "../include/command.h"

#include "../include/cswap.h"
Expand Down
8 changes: 5 additions & 3 deletions suppl/p-watcom.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <direct.h>
#include <stdlib.h>
#include <stddef.h>

#include <i86.h>

/* Global argc/argv variables */
#define G_ARGV _argv /* global char **argv variable */
Expand Down Expand Up @@ -71,13 +71,15 @@ typedef struct {
unsigned int r_es;
unsigned int r_flags;
} IREGS;

#if __WATCOMC__ <= 1290
void intrf(int inter_no, union REGPACK *regs);
#endif
#define intrpt(num,regs) intrf((num), (union REGPACK*)(regs))

#ifdef __WATCOMC__
unsigned CS_(void);
#pragma aux CS_ = "mov ax, cs" value[ax];
#define _CS CS_()
#endif

/* get/set current working drive */
extern short getdisk(void);
Expand Down

0 comments on commit 8dfb240

Please sign in to comment.