Browse Source

add a shell script that makes asio.h suitable for 64bit use in linux

tags/v1.0.0
Joakim Hernberg 7 years ago
parent
commit
1848c5c9ea
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      prepare_64bit_asio

+ 9
- 0
prepare_64bit_asio View File

@@ -0,0 +1,9 @@
#!/bin/sh
ed -s asio.h <<< $'g/unsigned long/s//ULONG/g\nw\nq'
ed -s asio.h <<< $'g/long long int/s//LONGLONG/g\nw\nq'
ed -s asio.h <<< $'g/long int/s//LONG/g\nw\nq'
ed -s asio.h <<< $'g/long/s//LONG/g\nw\nq'
ed -s asio.h <<< $'g/(\*bufferSwitch)/s//(CALLBACK *bufferSwitch)/g\nw\nq'
ed -s asio.h <<< $'g/(\*sampleRateDidChange)/s//(CALLBACK *sampleRateDidChange)/g\nw\nq'
ed -s asio.h <<< $'g/(\*asioMessage)/s//(CALLBACK *asioMessage)/g\nw\nq'
ed -s asio.h <<< $'g/(\*bufferSwitchTimeInfo)/s//(CALLBACK *bufferSwitchTimeInfo)/g\nw\nq'

Loading…
Cancel
Save