Mercurial > dropbear
view ifndef_wrapper.sh @ 1862:6f265a35159a
Fix -Wexpansion-to-defined failure on clang
(failure introduced in previous re-exec commit)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 30 Jan 2022 10:23:06 +0800 |
parents | 0196f4f83fee |
children |
line wrap: on
line source
#!/bin/sh # Wrap all "#define X Y" with a #ifndef X...#endif" sed 's/^\( *#define \([^ ][^ ]*\) .*\)/#ifndef \2\ \1\ #endif/'