summaryrefslogtreecommitdiff
path: root/ext/digest/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/defs.h')
-rw-r--r--ext/digest/defs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/digest/defs.h b/ext/digest/defs.h
index 7af8f52324..df7df377b9 100644
--- a/ext/digest/defs.h
+++ b/ext/digest/defs.h
@@ -10,7 +10,8 @@
#if defined(HAVE_SYS_CDEFS_H)
# include <sys/cdefs.h>
-#else
+#endif
+#if !defined(__BEGIN_DECLS)
# define __BEGIN_DECLS
# define __END_DECLS
#endif