[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / src / zthread / ThreadOps.cxx
blob53a3e4457bcadfb602461c3b4b5dc13c1e1b7a5a
1 /*
2 * Copyright (c) 2005, Eric Crahen
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is furnished
9 * to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in all
12 * copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 #ifndef __ZTTHREADOPSIMPLSELECT_CXX__
24 #define __ZTTHREADOPSIMPLSELECT_CXX__
26 #include "ThreadOps.h"
28 // This file will select an implementation for a ThreadOps based on
29 // what ThreadOps.h selects. This method is for selecting the
30 // source files, to improve portability. Currently, the project is
31 // based on the autoconf tool-set, which doesn't support conditional
32 // compilation well. Additionally, this should make the library
33 // easier to port since its working around conditional compilation
34 // by using C++ features and people won't have to fiddle around with
35 // their make tool as much to compile the source
37 #ifdef HAVE_CONFIG_H
38 # include "config.h"
39 #endif
41 // Check for sched_yield()
43 #if !defined(HAVE_SCHED_YIELD)
44 # if defined(HAVE_UNISTD_H)
45 # include <unistd.h>
46 # if defined(_POSIX_PRIORITY_SCHEDULING)
47 # define HAVE_SCHED_YIELD 1
48 # endif
49 # endif
50 #endif
52 #include ZT_THREADOPS_IMPLEMENTATION
54 #endif