grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / classes / zune / nlist / nbitmap_mcc / SetPatch.c
blob595e258ccf423aead31e5d7ac55a55cdbefa90ad
1 /***************************************************************************
3 NBitmap.mcc - New Bitmap MUI Custom Class
4 Copyright (C) 2006 by Daniel Allsopp
5 Copyright (C) 2007-2013 by NList 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 NList classes Support Site: http://www.sf.net/projects/nlist-classes
19 $Id$
21 ***************************************************************************/
23 #if !defined(__amigaos4__) && !defined(__MORPHOS__) && !defined(__AROS__)
24 #include <proto/exec.h>
25 #include <exec/types.h>
26 #include <exec/lists.h>
27 #include <exec/semaphores.h>
29 ULONG setPatchVersion;
31 void GetSetPatchVersion(void)
33 struct SetPatchSemaphore
35 struct SignalSemaphore semaphore;
36 struct MinList private;
37 UWORD version;
38 UWORD revision;
39 } *sem;
41 Forbid();
42 if((sem = (struct SetPatchSemaphore *)FindSemaphore((STRPTR)"« SetPatch »")) != NULL)
44 setPatchVersion = ((ULONG)sem->version << 16) | sem->revision;
46 Permit();
48 #endif