pacemaker  2.1.3-ea053b43a
Scalable High-Availability cluster resource manager
crm_compat.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2021 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__CRM_CRM_COMPAT__H
11 # define PCMK__CRM_CRM_COMPAT__H
12 
13 #include <glib.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
28 #define EOS '\0'
30 
32 #define MAX_IPC_DELAY 120
33 
36 
37 # ifndef __GNUC__
38 # define __builtin_expect(expr, result) (expr)
39 # endif
40 
41 #define __likely(expr) __builtin_expect(expr, 1)
42 
43 #define __unlikely(expr) __builtin_expect(expr, 0)
44 
45 // This ends the doxygen deprecation comment
47 
49 typedef GList *GListPtr;
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif // PCMK__CRM_CRM_COMPAT__H
GList * GListPtr
Definition: crm_compat.h:49