windows: Move getopt.h include file to the bottom 77/238577/1
authorWander Lairson Costa <wander.lairson@gmail.com>
Mon, 13 Jul 2020 18:58:02 +0000 (15:58 -0300)
committerVictor Cebollada <v.cebollada@samsung.com>
Wed, 15 Jul 2020 08:07:47 +0000 (09:07 +0100)
commit7c750a855a02eef9823eeab7360866206a65c17d
treec1b97f206697dff5e7674db85008a17a3e1207ed
parentfa979acff1f0c854f581e09334f2bd59dea6a4b1
windows: Move getopt.h include file to the bottom

getopt-win32 defines the symbol _END_EXTERN_C and undefines at the end
of the file. It turns out msvc standard library defines this same
symbol.

If getopt.h is included before C++ standard includes, it will undef
_END_EXTERN_C and causes compilation errors under msvc.

We move the getopt.h to the end of the list of include files so it can't
mess up with internal msvcrt symbols.

Change-Id: I404ca48d096703d0be6b5f466402fb2ca0223033
dali/internal/system/common/command-line-options.cpp