aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/include/ei.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2019-02-25 11:20:52 +0100
committerRickard Green <[email protected]>2019-02-25 11:20:52 +0100
commit5045fe8660545754ab5ec6bb3cbcf3a8ff7d9697 (patch)
tree6073545f9b4a579e3299b0d36f9aeacfc4d0d64b /lib/erl_interface/include/ei.h
parent2c06e174d6515b6a842906de9e6ebc70bd2f2ec0 (diff)
parent00fa7a8def826d2a4c8fb9e2c38208103bf04341 (diff)
downloadotp-5045fe8660545754ab5ec6bb3cbcf3a8ff7d9697.tar.gz
otp-5045fe8660545754ab5ec6bb3cbcf3a8ff7d9697.tar.bz2
otp-5045fe8660545754ab5ec6bb3cbcf3a8ff7d9697.zip
Merge branch 'rickard/deprecations-removals'
OTP-15621 OTP-15622 * rickard/deprecations-removals: Document deprecations and removals
Diffstat (limited to 'lib/erl_interface/include/ei.h')
-rw-r--r--lib/erl_interface/include/ei.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/erl_interface/include/ei.h b/lib/erl_interface/include/ei.h
index ca4960b252..10a6e5bf50 100644
--- a/lib/erl_interface/include/ei.h
+++ b/lib/erl_interface/include/ei.h
@@ -47,6 +47,20 @@ typedef LONG_PTR ssize_t; /* Sigh... */
# include <netdb.h>
#endif
+#ifndef EI_INCLUDED_CONFIG_H__
+#include "ei_config.h"
+#endif
+
+#if defined(HAVE_DEPRECATED_ATTRIBUTE) && !defined(EI_NO_DEPR_WARN)
+#define EI_HAVE_DEPRECATED_ATTR__ 1
+#define EI_DEPRECATED_ATTR_NAME deprecated
+#define EI_DEPRECATED_ATTR __attribute__((EI_DEPRECATED_ATTR_NAME))
+#else
+#undef EI_HAVE_DEPRECATED_ATTR__
+#define EI_DEPRECATED_ATTR_NAME
+#define EI_DEPRECATED_ATTR
+#endif
+
/* -------------------------------------------------------------------- */
/* Defines part of API */