]> granicus.if.org Git - libvpx/commitdiff
Guard vpx_config.h against multiple inclusions
authorAttila Nagy <attilanagy@google.com>
Wed, 15 Jun 2011 10:27:39 +0000 (13:27 +0300)
committerAttila Nagy <attilanagy@google.com>
Wed, 15 Jun 2011 10:36:09 +0000 (13:36 +0300)
Change-Id: Iabe2be73af2b92c53687755b31b77448fba385d2

build/make/configure.sh

index f05e0ee87aec6f01dc1cc85fad21cea9fc3142d2..66e0dbf48427c86a983923a631a5e3de8bc08456 100755 (executable)
@@ -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"
 }