From: Neil Brown Date: Sat, 12 May 2012 05:37:08 +0000 (+1000) Subject: Add endian.h back to config.h X-Git-Tag: v0.9~9 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=db182d650d14481d81d3dc56f18c83ff75bfbf48;p=wiggle.git Add endian.h back to config.h It turns out we do need it after all - but only include it if we really do need it. Signed-off-by: NeilBrown --- diff --git a/config.h b/config.h index 2f36254..0109c4a 100644 --- a/config.h +++ b/config.h @@ -1,6 +1,9 @@ /* Includes and defines for ccan files */ +#if !defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN) + #include +#endif #ifdef LITTLE_ENDIAN #define HAVE_LITTLE_ENDIAN 1 #define HAVE_BIG_ENDIAN 0