libtiff: tiffvers.h.in: add clang-format off/on

From 23b315d10f907495aa7ec6e7b2f9d822ab6598fb Mon Sep 17 00:00:00 2001
From: Even Rouault <[EMAIL REDACTED]>
Date: Sun, 11 Dec 2022 12:21:56 +0100
Subject: [PATCH] tiffvers.h.in: add clang-format off/on

---
 libtiff/tiffvers.h    | 7 +++++++
 libtiff/tiffvers.h.in | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/libtiff/tiffvers.h b/libtiff/tiffvers.h
index b59e3c51..c90b5c1c 100644
--- a/libtiff/tiffvers.h
+++ b/libtiff/tiffvers.h
@@ -1,3 +1,8 @@
+/* clang-format off */
+
+/* clang-format disabled because FindTIFF.cmake is very sensitive to the
+ * formatting of below line being a single line.
+ */
 #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.5.0\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
 /*
  * This define can be used in code that requires
@@ -21,3 +26,5 @@
      (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION > (minor)) || \
      (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION == (minor) && \
       TIFFLIB_MICRO_VERSION >= (micro)))
+
+/* clang-format on */
diff --git a/libtiff/tiffvers.h.in b/libtiff/tiffvers.h.in
index 48fec9b1..b98851c0 100644
--- a/libtiff/tiffvers.h.in
+++ b/libtiff/tiffvers.h.in
@@ -1,3 +1,8 @@
+/* clang-format off */
+
+/* clang-format disabled because FindTIFF.cmake is very sensitive to the
+ * formatting of below line being a single line.
+ */
 #define TIFFLIB_VERSION_STR "LIBTIFF, Version LIBTIFF_VERSION\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
 /*
  * This define can be used in code that requires
@@ -21,3 +26,5 @@
      (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION > (minor)) || \
      (TIFFLIB_MAJOR_VERSION == (major) && TIFFLIB_MINOR_VERSION == (minor) && \
       TIFFLIB_MICRO_VERSION >= (micro)))
+
+/* clang-format on */