aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libcerf/begin-end-decls.diff
blob: 151d056b925e1ba40c03f074d46fa775688df9f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
diff --git a/lib/cerf.h b/lib/cerf.h
index 28576ab..c9bc6dd 100644
--- a/lib/cerf.h
+++ b/lib/cerf.h
@@ -55,25 +55,23 @@
      typedef double _Complex _cerf_cmplx;
 #  endif
 
-#  undef __BEGIN_DECLS
-#  undef __END_DECLS
 #  ifdef CERF_AS_CPP
 #    ifndef __cplusplus
        impossible_case
 #    endif
-#    define __BEGIN_DECLS
-#    define __END_DECLS
+#    define LIBCERF_BEGIN_DECLS
+#    define LIBCERF_END_DECLS
 #  else
 #    ifdef __cplusplus // this include file called from C++ while library is compiled as C
-#      define __BEGIN_DECLS extern "C" {
-#      define __END_DECLS }
+#      define LIBCERF_BEGIN_DECLS extern "C" {
+#      define LIBCERF_END_DECLS }
 #    else
-#      define __BEGIN_DECLS
-#      define __END_DECLS
+#      define LIBCERF_BEGIN_DECLS
+#      define LIBCERF_END_DECLS
 #    endif
 #  endif
 
-__BEGIN_DECLS
+LIBCERF_BEGIN_DECLS
 
 #if _WIN32
 #define EXPORT __declspec(dllexport)
@@ -111,5 +109,5 @@ EXPORT double voigt(double x, double sigma, double gamma);
 // compute the full width at half maximum of the Voigt function
 EXPORT double voigt_hwhm(double sigma, double gamma);
 
-__END_DECLS
+LIBCERF_END_DECLS
 #endif /* __CERF_H__ */