Skip to content

Commit

Permalink
rename HAVE_MACHINE_BSWAP_H to CONFIG_MACHINE_BSWAP_H
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Quintela <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
  • Loading branch information
Juan Quintela authored and Anthony Liguori committed Jul 27, 2009
1 parent 56ffaf2 commit 5735147
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bswap.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <inttypes.h>

#ifdef HAVE_MACHINE_BSWAP_H
#ifdef CONFIG_MACHINE_BSWAP_H
#include <sys/endian.h>
#include <sys/types.h>
#include <machine/bswap.h>
Expand Down Expand Up @@ -64,7 +64,7 @@ static inline uint64_t bswap64(uint64_t x)
return bswap_64(x);
}

#endif /* ! HAVE_MACHINE_BSWAP_H */
#endif /* ! CONFIG_MACHINE_BSWAP_H */

static inline void bswap16s(uint16_t *s)
{
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ EOF
int main(void) { return bswap32(0); }
EOF
if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then
echo "#define HAVE_MACHINE_BSWAP_H 1" >> $config_host_h
echo "#define CONFIG_MACHINE_BSWAP_H 1" >> $config_host_h
fi
fi

Expand Down

0 comments on commit 5735147

Please sign in to comment.