Preprocessor error for unknown targets and include for TargetConditionals.h

This commit is contained in:
Anton Tieleman 2017-03-04 13:06:21 +01:00
parent 11857a8da6
commit 9a9119669b
2 changed files with 5 additions and 1 deletions

View File

@ -536,7 +536,9 @@ if [ ${#OPENSSLCONF_ALL[@]} -gt 1 ]; then
echo "# include <openssl/${OPENSSLCONF_CURRENT}>" >> "${OPENSSLCONF_INTERMEDIATE}"
done
# Finish with #endif
# Finish
echo "#else" >> "${OPENSSLCONF_INTERMEDIATE}"
echo '# error Unable to determine target or target not included in OpenSSL build' >> "${OPENSSLCONF_INTERMEDIATE}"
echo "#endif" >> "${OPENSSLCONF_INTERMEDIATE}"
fi

View File

@ -6,3 +6,5 @@
* See also https://github.com/x2on/OpenSSL-for-iPhone/issues/126 and referenced pull requests
*/
#include <TargetConditionals.h>