1
0
Fork 0
dosbox-staging/scripts/unifdef-all.sh
Patryk Obara ce7c27a48b Remove irrelevant ifdefs from unifdef-all script
OS/2 and DirectDraw support were removed during upgrade to SDL2.
2019-12-26 03:23:19 +01:00

15 lines
317 B
Bash
Executable file

#!/bin/bash
# This script uses unifdef to mass-remove code inside ifdefs, that are not
# relevant to Linux.
#
# Use it only to improve readability when researching code.
cd "$(git rev-parse --show-toplevel)" || exit
git ls-files ./*.{h,cpp} | xargs unifdef \
-U WIN32 \
-U _WIN32 \
-U _WIN64 \
-U MACOSX \
-m