summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2022-04-17 19:51:44 -0700
committerMartijn van Beurden <mvanb1@gmail.com>2022-04-29 19:17:26 +0200
commitbfe5ff9455ca62d7827e14a22fbb1522a63c4e3e (patch)
tree32edb3ebed0be92e422b2babac7829da97c3204d /include
parent95e2c52980977e78976e2090d19e4cbae9d0a2e9 (diff)
downloadflac-bfe5ff9455ca62d7827e14a22fbb1522a63c4e3e.tar.gz
change if checks to ifdef
More similar to the rest of the code. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/share/alloc.h2
-rw-r--r--include/share/compat.h2
-rw-r--r--include/share/endswap.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/include/share/alloc.h b/include/share/alloc.h
index 914de9ba..99ef9bb3 100644
--- a/include/share/alloc.h
+++ b/include/share/alloc.h
@@ -42,7 +42,7 @@
*/
#include <limits.h> /* for SIZE_MAX */
-#if HAVE_STDINT_H
+#ifdef HAVE_STDINT_H
#include <stdint.h> /* for SIZE_MAX in case limits.h didn't get it */
#endif
#include <stdlib.h> /* for size_t, malloc(), etc */
diff --git a/include/share/compat.h b/include/share/compat.h
index c28054be..f72c209b 100644
--- a/include/share/compat.h
+++ b/include/share/compat.h
@@ -62,7 +62,7 @@
#define FLAC__off_t off_t
#endif
-#if HAVE_INTTYPES_H
+#ifdef HAVE_INTTYPES_H
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#endif
diff --git a/include/share/endswap.h b/include/share/endswap.h
index 9088a747..f5bc92f3 100644
--- a/include/share/endswap.h
+++ b/include/share/endswap.h
@@ -31,10 +31,10 @@
/* It is assumed that this header will be included after "config.h". */
-#if HAVE_BSWAP32 /* GCC and Clang */
+#ifdef HAVE_BSWAP32 /* GCC and Clang */
/* GCC prior to 4.8 didn't provide bswap16 on x86_64 */
-#if ! HAVE_BSWAP16
+#ifndef HAVE_BSWAP16
static inline unsigned short __builtin_bswap16(unsigned short a)
{
return (a<<8)|(a>>8);