grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / classes / zune / nlist / demo / vastubs.c
blob73924af0e106f25e9b726e8a13f5540dd4b92a47
1 /***************************************************************************
3 NList classes
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); }
41 #else
42 #error "VARGS stubs are only save on m68k systems!"
43 #endif
44 #endif