revert between 56095 -> 55830 in arch
[AROS.git] / workbench / classes / zune / nlist / nbalance_mcc / vastubs.c
blob02eebfbf597ebc7d4becae9bdc129090eaea1574
1 /***************************************************************************
3 NBalance.mcc - New Balance MUI Custom Class
4 Copyright (C) 2008-2013 by NList Open Source Team
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 NBalance class Support Site: http://www.sf.net/projects/nlist-classes
18 $Id$
20 ***************************************************************************/
22 #if !defined(__AROS__) && (defined(__VBCC__) || defined(NO_INLINE_STDARG))
23 #if defined(_M68000) || defined(__M68000) || defined(__mc68000)
25 #include <exec/types.h>
27 /* FIX V45 breakage... */
28 #if INCLUDE_VERSION < 45
29 #define MY_CONST_STRPTR CONST_STRPTR
30 #else
31 #define MY_CONST_STRPTR CONST STRPTR
32 #endif
34 #include <proto/intuition.h>
36 APTR NewObject( struct IClass *classPtr, CONST_STRPTR classID, Tag tag1, ... )
37 { return NewObjectA(classPtr, classID, (struct TagItem *)&tag1); }
38 ULONG SetAttrs( APTR object, ULONG tag1, ... )
39 { return SetAttrsA(object, (struct TagItem *)&tag1); }
40 VOID SetWindowPointer( struct Window *win, Tag tag1, ... )
41 { SetWindowPointerA(win, (struct TagItem *)&tag1); }
43 #include <proto/graphics.h>
45 LONG ObtainBestPen( struct ColorMap *cm, ULONG r, ULONG g, ULONG b, Tag tag1Type, ... )
46 { return ObtainBestPenA(cm, r, g, b, (CONST struct TagItem *)&tag1Type); }
48 #else
49 #error "VARGS stubs are only save on m68k systems!"
50 #endif
51 #endif