fix spacing with make tabbing
[satcheck.git] / context.h
1 /*      Copyright (c) 2015 Regents of the University of California
2  *
3  *      Author: Brian Demsky <bdemsky@uci.edu>
4  *
5  *      This program is free software; you can redistribute it and/or
6  *      modify it under the terms of the GNU General Public License
7  *      version 2 as published by the Free Software Foundation.
8  */
9
10 /**
11  * @file context.h
12  * @brief ucontext header, since Mac OSX swapcontext() is broken
13  */
14
15 #ifndef __CONTEXT_H__
16 #define __CONTEXT_H__
17
18 #include <ucontext.h>
19
20 #ifdef MAC
21
22 int model_swapcontext(ucontext_t *oucp, ucontext_t *ucp);
23
24 #else   /* !MAC */
25
26 static inline int model_swapcontext(ucontext_t *oucp, ucontext_t *ucp)
27 {
28         return swapcontext(oucp, ucp);
29 }
30
31 #endif/* !MAC */
32
33 #endif/* __CONTEXT_H__ */