]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add PLATFORM_* define to config.h to allow supporting non Linux platforms.
authorBernhard Froehlich <decke@bluelife.at>
Sat, 4 May 2013 11:54:12 +0000 (13:54 +0200)
committerAdam Sutton <dev@adamsutton.me.uk>
Fri, 31 May 2013 13:19:24 +0000 (14:19 +0100)
support/configure.inc

index 9b745c036564b3351b7b4bbb28a867c3ee61d7d1..e5c5acd6fc2f9bf3567653bce4112b7699bd2f3c 100755 (executable)
@@ -486,6 +486,11 @@ EOF
   CONFIG_H="${BUILDDIR}/config.h"
   cat > "${CONFIG_H}" <<EOF
 // Automatically generated by configure - DO NOT EDIT!
+EOF
+
+  # Create Platform defines
+  cat > ${CONFIG_H} <<EOF
+#define PLATFORM_$(toupper ${PLATFORM}) 1
 EOF
 
   # Add package config