mirror of https://github.com/xiph/flac
change if checks to ifdef
More similar to the rest of the code. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
95e2c52980
commit
bfe5ff9455
|
@ -71,10 +71,10 @@
|
|||
#cmakedefine GIT_COMMIT_TAG "@GIT_COMMIT_TAG@"
|
||||
|
||||
/* Compiler has the __builtin_bswap16 intrinsic */
|
||||
#cmakedefine01 HAVE_BSWAP16
|
||||
#cmakedefine HAVE_BSWAP16
|
||||
|
||||
/* Compiler has the __builtin_bswap32 intrinsic */
|
||||
#cmakedefine01 HAVE_BSWAP32
|
||||
#cmakedefine HAVE_BSWAP32
|
||||
|
||||
/* Define to 1 if you have the <byteswap.h> header file. */
|
||||
#cmakedefine HAVE_BYTESWAP_H
|
||||
|
@ -95,7 +95,7 @@
|
|||
#cmakedefine HAVE_ICONV
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#cmakedefine01 HAVE_INTTYPES_H
|
||||
#cmakedefine HAVE_INTTYPES_H
|
||||
|
||||
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
|
||||
#cmakedefine HAVE_LANGINFO_CODESET
|
||||
|
@ -110,7 +110,7 @@
|
|||
#cmakedefine HAVE_SOCKLEN_T
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#cmakedefine01 HAVE_STDINT_H
|
||||
#cmakedefine HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#cmakedefine HAVE_STDLIB_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 */
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
|
||||
#ifdef VMS
|
||||
# include <unixlib.h>
|
||||
# if HAVE_STRING_H - 0
|
||||
# ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
# endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue