mirror of
https://github.com/VK3FNG/soundmodem.git
synced 2025-12-06 03:01:59 +01:00
18 lines
449 B
Bash
18 lines
449 B
Bash
|
|
#!/bin/sh
|
||
|
|
#
|
||
|
|
# A script to fix the DirectX includes so that gcc can compile them...
|
||
|
|
|
||
|
|
#cd `dirname $0`
|
||
|
|
for file in include/directx6/*.h
|
||
|
|
do echo "Stripping $file..."
|
||
|
|
tr -d '\r' <$file >$file.new && mv $file.new $file
|
||
|
|
done
|
||
|
|
|
||
|
|
# Fix the few remaining headers that have anonymous unions
|
||
|
|
for file in include/directx6/d3dtypes.h
|
||
|
|
do if [ -f $file ]; then
|
||
|
|
echo "Fixing $file..."
|
||
|
|
perl ./deunion.pl <$file >$file.new && mv $file.new $file
|
||
|
|
fi
|
||
|
|
done
|