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