Guard DECLARE_DEPRECATED against multiple includes of opensslconf.h
[openssl.git] / include / openssl / opensslconf.h.in
index 200a11a8fa105167afaf5801165c664feaf5c416..b793d482c7eec9783fa714bc6c12313d7f8494c1 100644 (file)
@@ -68,11 +68,13 @@ extern "C" {
  * still won't see them if the library has been built to disable deprecated
  * functions.
  */
-#define DECLARE_DEPRECATED(f)   f;
-#ifdef __GNUC__
-# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
-#  undef DECLARE_DEPRECATED
-#  define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
+#ifndef DECLARE_DEPRECATED
+# define DECLARE_DEPRECATED(f)   f;
+# ifdef __GNUC__
+#  if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
+#   undef DECLARE_DEPRECATED
+#   define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
+#  endif
 # endif
 #endif