From 7c750a855a02eef9823eeab7360866206a65c17d Mon Sep 17 00:00:00 2001 From: Wander Lairson Costa Date: Mon, 13 Jul 2020 15:58:02 -0300 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali/internal/system/common/command-line-options.cpp b/dali/internal/system/common/command-line-options.cpp index 7270a23..52c9412 100644 --- a/dali/internal/system/common/command-line-options.cpp +++ b/dali/internal/system/common/command-line-options.cpp @@ -19,12 +19,12 @@ #include // EXTERNAL INCLUDES -#include #include #include #include #include +#include namespace Dali { -- 2.7.4