summaryrefslogtreecommitdiff
path: root/include/share
diff options
context:
space:
mode:
Diffstat (limited to 'include/share')
-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);