MGE General C Library - API Documentation  v1.4.1
Library of general C functions.
portability.h
Go to the documentation of this file.
1 
16 /* **********************************************************************
17  * *
18  * Changelog *
19  * *
20  * Date Author Version Description *
21  * *
22  * 15/06/2015 MG 1.0.1 First release. *
23  * 16/07/2016 MG 1.0.2 Move towards kernel coding style. *
24  * 05/11/2017 MG 1.0.3 Add Doxygen comments. *
25  * 09/11/2017 MG 1.0.4 Add SPDX license tag. *
26  * 02/01/2018 MG 1.0.5 Move to new source directory structure. *
27  * 08/06/2019 MG 1.0.6 clang-format coding style changes. *
28  * *
29  ************************************************************************
30  */
31 
32 #ifndef PORTABILITY_H
33 #define PORTABILITY_H
34 
35 #undef BEGIN_C_DECLS
36 #undef END_C_DECLS
37 
38 #ifdef __cplusplus
39  #define BEGIN_C_DECLS extern "C" {
40  #define END_C_DECLS }
41 #else
42 
46  #define BEGIN_C_DECLS
47 
50  #define END_C_DECLS
51 #endif
52 
53 #undef PARAMS
54 
55 #if defined __STDC__ || defined _AIX \
56  || (defined __mips && defined _SYSTYPE_SVR4) || defined WIN32 \
57  || defined __cplusplus
58  #define PARAMS(protos) protos
59 #else
60 
65  #define PARAMS(protos) ()
66 #endif
67 
68 #endif /* ndef PORTABILITY_H */
69