]> granicus.if.org Git - libjpeg-turbo/commitdiff
jc*huff.c: Consistify preproc directive formatting
authorDRC <information@libjpeg-turbo.org>
Thu, 17 Oct 2019 02:16:43 +0000 (21:16 -0500)
committerDRC <information@libjpeg-turbo.org>
Thu, 17 Oct 2019 19:09:50 +0000 (14:09 -0500)
The rest of the libjpeg API code uses "#if defined(condition)" rather
than "#if defined condition".

jchuff.c
jcphuff.c

index 526203e3db73b688ed67c900b0f80f59da953bcc..206958e2f0d27c5eee20e4e44fbf8c047e23d051 100644 (file)
--- a/jchuff.c
+++ b/jchuff.c
@@ -43,8 +43,8 @@
  */
 
 /* NOTE: Both GCC and Clang define __GNUC__ */
-#if defined __GNUC__ && (defined __arm__ || defined __aarch64__)
-#if !defined __thumb__ || defined __thumb2__
+#if defined(__GNUC__) && (defined(__arm__) || defined(__aarch64__))
+#if !defined(__thumb__) || defined(__thumb2__)
 #define USE_CLZ_INTRINSIC
 #endif
 #endif
index 024d3af0fb15a0b2bed2cb51ee12d669f625c870..8c4efaf16cb686d66c831db69d3ff72ec6d2d39f 100644 (file)
--- a/jcphuff.c
+++ b/jcphuff.c
@@ -52,8 +52,8 @@
  */
 
 /* NOTE: Both GCC and Clang define __GNUC__ */
-#if defined __GNUC__ && (defined __arm__ || defined __aarch64__)
-#if !defined __thumb__ || defined __thumb2__
+#if defined(__GNUC__) && (defined(__arm__) || defined(__aarch64__))
+#if !defined(__thumb__) || defined(__thumb2__)
 #define USE_CLZ_INTRINSIC
 #endif
 #endif