hid/gcode: Add a more direct "#include <locale.h>" for setlocale()
commit535d5ef8030fcf2e0a096818af9e909221bc9447
authorPeter Clifton <peter@clifton-electronics.co.uk>
Tue, 1 Jan 2013 23:43:00 +0000 (1 23:43 +0000)
committerPeter Clifton <peter@clifton-electronics.co.uk>
Wed, 2 Jan 2013 00:13:11 +0000 (2 00:13 +0000)
tree7e6828d9a4dbe3608aff84244997f42594963890
parentf6ae9b8ebe519e8b27208b07a43896a5ff757567
hid/gcode: Add a more direct "#include <locale.h>" for setlocale()

The lack of this include caused a failure to build on my machine when
compiled without optimisation (-O0). With any optimisation turned on,
the build would work without the include.

Having chased this strangeness down, it turns out that we were including
libintl.h via global.h, and that libintl.h includes locale.h, IFF
optimisation is turned on at the time it is pre-processed.
src/hid/gcode/gcode.c