summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorAttila Nagy <attilanagy@google.com>2011-06-15 13:27:39 +0300
committerAttila Nagy <attilanagy@google.com>2011-06-15 13:36:09 +0300
commite7e5a58d0c6a7b6f42dd5f9cbd10a26fca955eeb (patch)
treeb6f0e1a79f9428ad0fc1f7b994cb4dad70ef58ed /build
parent7be5b6dae4b21afef207372654fd6c3f1314fabd (diff)
downloadlibvpx-e7e5a58d0c6a7b6f42dd5f9cbd10a26fca955eeb.tar
libvpx-e7e5a58d0c6a7b6f42dd5f9cbd10a26fca955eeb.tar.gz
libvpx-e7e5a58d0c6a7b6f42dd5f9cbd10a26fca955eeb.tar.bz2
libvpx-e7e5a58d0c6a7b6f42dd5f9cbd10a26fca955eeb.zip
Guard vpx_config.h against multiple inclusions
Change-Id: Iabe2be73af2b92c53687755b31b77448fba385d2
Diffstat (limited to 'build')
-rwxr-xr-xbuild/make/configure.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh
index f05e0ee87..66e0dbf48 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -412,11 +412,14 @@ EOF
write_common_target_config_h() {
cat > ${TMP_H} << EOF
/* This file automatically generated by configure. Do not edit! */
+#ifndef VPX_CONFIG_H
+#define VPX_CONFIG_H
#define RESTRICT ${RESTRICT}
EOF
print_config_h ARCH "${TMP_H}" ${ARCH_LIST}
print_config_h HAVE "${TMP_H}" ${HAVE_LIST}
print_config_h CONFIG "${TMP_H}" ${CONFIG_LIST}
+ echo "#endif /* VPX_CONFIG_H */" >> ${TMP_H}
mkdir -p `dirname "$1"`
cmp "$1" ${TMP_H} >/dev/null 2>&1 || mv ${TMP_H} "$1"
}