Corrections to SVN properties.
[AROS.git] / workbench / classes / zune / nlist / include / timeval.h
blob387794899cd2b6be7b5074a13fdcf5b8987ef459
1 #ifndef TIMEVAL_H
2 #define TIMEVAL_H 1
4 /***************************************************************************
6 NList.mcc - New List MUI Custom Class
7 Registered MUI class, Serial Number: 1d51 0x9d510030 to 0x9d5100A0
8 0x9d5100C0 to 0x9d5100FF
10 Copyright (C) 1996-2001 by Gilles Masson
11 Copyright (C) 2001-2013 by NList Open Source Team
13 This library is free software; you can redistribute it and/or
14 modify it under the terms of the GNU Lesser General Public
15 License as published by the Free Software Foundation; either
16 version 2.1 of the License, or (at your option) any later version.
18 This library is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 Lesser General Public License for more details.
23 NList classes Support Site: http://www.sf.net/projects/nlist-classes
25 $Id$
27 ***************************************************************************/
29 // since the Amiga's timeval structure was renamed to
30 // "struct TimeVal" in OS4 (to prevent clashes with the POSIX one)
31 // we require to define that slightly compatible structure on our
32 // own in case we compile YAM for something else than OS4 or in case
33 // an older SDK is used.
34 #if !defined(__amigaos4__) || !defined(__NEW_TIMEVAL_DEFINITION_USED__)
35 #include <exec/io.h>
38 struct TimeVal
40 ULONG Seconds;
41 ULONG Microseconds;
44 struct TimeRequest
46 struct IORequest Request;
47 struct TimeVal Time;
50 #define TIMEVAL(x) (APTR)(x)
52 #else
54 #define TIMEVAL(x) (x)
56 #endif
58 #endif /* TIMEVAL_H */