From e312cf26ea1ae0445926df20c43e80363d453cb5 Mon Sep 17 00:00:00 2001 From: Kendall Bennett Date: Fri, 12 Nov 1999 04:56:54 +0000 Subject: . Updates to get X86, MXX and 3DNow assembler code working with Watcom C++ and NASM. This includes lots of _ASMAPI macros to ensure that assembler functions are prototyped as __cdecl, as Watcom C++ uses register calling conventions by default. . Misc fixes to files to remove warnings generated by Watcom C++. --- src/mesa/x86/assyntax.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mesa/x86/assyntax.h') diff --git a/src/mesa/x86/assyntax.h b/src/mesa/x86/assyntax.h index 1d476ce49b..30105073b1 100644 --- a/src/mesa/x86/assyntax.h +++ b/src/mesa/x86/assyntax.h @@ -876,9 +876,17 @@ #define D_BYTE db /* #define SPACE */ /* #define COMM */ +#if defined(__WATCOMC__) +SECTION _TEXT public align=16 class=CODE use32 flat +SECTION _DATA public align=16 class=DATA use32 flat +#define SEG_TEXT SECTION _TEXT +#define SEG_DATA SECTION _DATA +#define SEG_BSS SECTION .bss +#else #define SEG_DATA SECTION .data #define SEG_TEXT SECTION .text #define SEG_BSS SECTION .bss +#endif #define D_SPACE(n) db n REP 0 -- cgit v1.2.3