CrashOverride85 / zc95

4 channel EStim box inspired by the mk312bt, with Lua scripting support
GNU General Public License v3.0
46 stars 12 forks source link

Change the order of some includes #43

Closed jlatex closed 1 year ago

jlatex commented 1 year ago

Change the order of some includes so that it will compile on arm-none-eabi-gcc (Arm GNU Toolchain 12.3.Rel1 (Build arm-12.35)) 12.3.1 20230626 on Linux, otherwise you get failures due to missing definitions of 'uint' etc

I didn't test this with other versions so it's possible the ordering will need more tweaking.

CrashOverride85 commented 1 year ago

Interesting, I'm building on Linux too, and haven't seen that. Although it looks like I'm using an older version:

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027]

Which is coming from Debian bullseye's gcc-arm-none-eabi package.

It also builds fine for me with this change, so seems good, thanks 🙂