configure: Move ASMALIGN check into x86 section
[mplayer/glamo.git] / osdep / osdep.h
blob654309c0152b813f5af5fb1005ef25209b3c5631
1 /*
2 * Header in order to include OS-specific headers, macros, types and so on
4 * Copyright (c) 2010 by KO Myung-Hun (komh@chollian.net)
6 * This file is part of MPlayer.
8 * MPlayer is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * MPlayer is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef MPLAYER_OSDEP_H
24 #define MPLAYER_OSDEP_H
26 #ifdef __OS2__
27 #define INCL_DOS
28 #define INCL_DOSDEVIOCTL
29 #include <os2.h>
31 #include <process.h> /* getpid() */
33 #define REALTIME_PRIORITY_CLASS MAKESHORT(0, PRTYC_TIMECRITICAL)
34 #define HIGH_PRIORITY_CLASS MAKESHORT(PRTYD_MAXIMUM, PRTYC_REGULAR)
35 #define ABOVE_NORMAL_PRIORITY_CLASS MAKESHORT(PRTYD_MAXIMUM / 2, PRTYC_REGULAR)
36 #define NORMAL_PRIORITY_CLASS MAKESHORT(0, PRTYC_REGULAR)
37 #define BELOW_NORMAL_PRIORITY_CLASS MAKESHORT(PRTYD_MAXIMUM, PRTYC_IDLETIME)
38 #define IDLE_PRIORITY_CLASS MAKESHORT(0, PRTYC_IDLETIME)
40 #define SetPriorityClass(pid, prio) \
41 DosSetPriority(PRTYS_PROCESS, \
42 HIBYTE(prio), \
43 LOBYTE(prio), \
44 pid)
46 #define GetCurrentProcess() getpid()
47 #endif /* __OS2__ */
49 #endif /* MPLAYER_OSDEP_H */