1 | /* |
2 | * PROGRAM: Firebird RDBMS posix definitions |
3 | * MODULE: fb_pthread.h |
4 | * DESCRIPTION: Defines appropriate macros before including pthread.h |
5 | * |
6 | * The contents of this file are subject to the Initial |
7 | * Developer's Public License Version 1.0 (the "License"); |
8 | * you may not use this file except in compliance with the |
9 | * License. You may obtain a copy of the License at |
10 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. |
11 | * |
12 | * Software distributed under the License is distributed AS IS, |
13 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. |
14 | * See the License for the specific language governing rights |
15 | * and limitations under the License. |
16 | * |
17 | * The Original Code was created by Alexander Peshkoff |
18 | * for the Firebird Open Source RDBMS project. |
19 | * |
20 | * Copyright (c) 2012 Alexander Peshkoff <peshkoff@mail.ru> |
21 | * and all contributors signed below. |
22 | * |
23 | * All Rights Reserved. |
24 | * Contributor(s): ______________________________________. |
25 | * |
26 | */ |
27 | |
28 | #ifndef INCLUDE_FB_PTHREAD_H |
29 | #define INCLUDE_FB_PTHREAD_H |
30 | |
31 | #if defined(LINUX) && (!defined(__USE_GNU)) |
32 | #define __USE_GNU 1 // required on this OS to have required for us stuff declared |
33 | #endif // LINUX // should be defined before include <pthread.h> - AP 2009 |
34 | |
35 | #include <pthread.h> |
36 | |
37 | #endif // INCLUDE_FB_PTHREAD_H |
38 | |