From bc8c9c3a8d1861d8d8ac543d2089d1a4b79a4327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sat, 29 Sep 2018 23:05:25 +0300 Subject: [PATCH] windres: Add support for the --preprocessor-arg options --- wrappers/windres-wrapper.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wrappers/windres-wrapper.sh b/wrappers/windres-wrapper.sh index 1de8830..564cc68 100755 --- a/wrappers/windres-wrapper.sh +++ b/wrappers/windres-wrapper.sh @@ -126,8 +126,10 @@ while [ $# != 0 ]; do CODEPAGE="${1#*=}";; "--preprocessor") error "ENOSYS";; + "--preprocessor-arg="*) + CPP_OPTIONS="$CPP_OPTIONS ${1#*=}";; "--preprocessor-arg") - error "ENOSYS";; + CPP_OPTIONS="$CPP_OPTIONS $2"; shift;; "-D"*) CPP_OPTIONS="$CPP_OPTIONS $1";; "-D"|"--define")