summaryrefslogtreecommitdiffstats
path: root/common/lz_compress_tmpl.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-21 12:35:34 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:52 +0100
commit08326f733a2311ad241fad7146516c69840b675e (patch)
tree68632b12292a9980b1836766f91f27f5af0f73f3 /common/lz_compress_tmpl.c
parentd88b144f1bc450b00c1b78ac58d88ef2e46a5868 (diff)
downloadspice-common-08326f733a2311ad241fad7146516c69840b675e.tar.gz
spice-common-08326f733a2311ad241fad7146516c69840b675e.tar.xz
spice-common-08326f733a2311ad241fad7146516c69840b675e.zip
add #include <config.h> to all source files
When using config.h, it must be the very first include in all source files since it contains #define that may change the compilation process (eg libc structure layout changes when it's used to enable large file support on 32 bit x86 archs). This commit adds it at the beginning of all .c and .cpp files
Diffstat (limited to 'common/lz_compress_tmpl.c')
-rw-r--r--common/lz_compress_tmpl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/lz_compress_tmpl.c b/common/lz_compress_tmpl.c
index 18d6697..865a30a 100644
--- a/common/lz_compress_tmpl.c
+++ b/common/lz_compress_tmpl.c
@@ -40,6 +40,9 @@
SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#define DJB2_START 5381;
#define DJB2_HASH(hash, c) (hash = ((hash << 5) + hash) ^ (c)) //|{hash = ((hash << 5) + hash) + c;}