perl -pi~ -e 's/\\n\\r/\\r\\n/g' *.c *.h

Will likely corrupt some of the internal buffer stuff.