revert between 56095 -> 55830 in arch
[AROS.git] / workbench / classes / zune / nlist / include / mcc_common.h
blobed0a5f3e1fe67b3d94ff6c3486388d97213a4019
1 /***************************************************************************
3 NList MUI custom classes
5 Copyright (C) 1996-2001 by Gilles Masson (NList.mcc)
6 Copyright (C) 1999-2001 by Carsten Scholling (NListtree.mcc)
7 Copyright (C) 2001-2014 NList Open Source Team
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
19 NList classes Support Site: http://www.sf.net/projects/nlist-classes
21 $Id$
23 ***************************************************************************/
25 #include "SDI_compiler.h"
26 #include "SDI_hook.h"
27 #include "SDI_lib.h"
28 #include "SDI_stdarg.h"
30 #ifdef __amigaos4__
32 #include <proto/intuition.h>
34 /* redefine some defines to allow complexer macro use later on */
35 #define DoMethod IDoMethod
36 #define DoMethodA IDoMethodA
37 #define DoSuperMethod IDoSuperMethod
38 #define DoSuperMethodA IDoSuperMethodA
39 #define SetSuperAttrs ISetSuperAttrs
40 #define CoerceMethod ICoerceMethod
41 #define CoerceMethodA ICoerceMethodA
42 #define CallHookA CallHookPkt
44 #ifdef OpenWindowTags
45 #undef OpenWindowTags
46 #define OpenWindowTags IIntuition->OpenWindowTags
47 #endif
49 #ifdef NewObject
50 #undef NewObject
51 #define NewObject IIntuition->NewObject
52 #endif
54 #define GETINTERFACE(iface, base) (iface = (APTR)GetInterface((struct Library *)(base), "main", 1L, NULL))
55 #define DROPINTERFACE(iface) (DropInterface((struct Interface *)iface), iface = NULL)
57 #else
59 #include <clib/alib_protos.h>
61 #define GETINTERFACE(iface, base) TRUE
62 #define DROPINTERFACE(iface)
64 #endif /* ! __amigaos4__ */