MGE General C Library - API Documentation  v1.6.8
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  * 03/12/2021 MG 1.0.7 Tighten SPDX tag. *
29  * *
30  ************************************************************************
31  */
32 
33 #ifndef PORTABILITY_H
34 #define PORTABILITY_H
35 
36 #undef BEGIN_C_DECLS
37 #undef END_C_DECLS
38 
39 #ifdef __cplusplus
40  #define BEGIN_C_DECLS extern "C" {
41  #define END_C_DECLS }
42 #else
47  #define BEGIN_C_DECLS
51  #define END_C_DECLS
52 #endif
53 
54 #undef PARAMS
55 
56 #if defined __STDC__ || defined _AIX \
57  || (defined __mips && defined _SYSTYPE_SVR4) || defined WIN32 \
58  || defined __cplusplus
59  #define PARAMS(protos) protos
60 #else
66  #define PARAMS(protos) ()
67 #endif
68 
69 #endif /* ndef PORTABILITY_H */
70