From e54666b448e21940fc63def00a1f6649a5e6581d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsolt=20Borb=C3=A9ly?= Date: Thu, 3 Oct 2019 17:39:57 +0200 Subject: [PATCH] Fix the include format of math.h (#3197) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The order of includes are also fixed. JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com --- .../builtin-objects/ecma-builtin-number.c | 3 ++- .../ecma-builtin-typedarray-prototype.c | 25 ++++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/jerry-core/ecma/builtin-objects/ecma-builtin-number.c b/jerry-core/ecma/builtin-objects/ecma-builtin-number.c index 26544080f..77caf8969 100644 --- a/jerry-core/ecma/builtin-objects/ecma-builtin-number.c +++ b/jerry-core/ecma/builtin-objects/ecma-builtin-number.c @@ -13,6 +13,8 @@ * limitations under the License. */ +#include + #include "ecma-alloc.h" #include "ecma-builtins.h" #include "ecma-conversion.h" @@ -24,7 +26,6 @@ #include "ecma-objects.h" #include "ecma-try-catch-macro.h" #include "jrt.h" -#include "math.h" #if ENABLED (JERRY_BUILTIN_NUMBER) diff --git a/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c b/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c index ce3fbd1ce..94574c004 100644 --- a/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c +++ b/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c @@ -13,26 +13,27 @@ * limitations under the License. */ +#include + +#include "ecma-arraybuffer-object.h" #include "ecma-builtin-helpers.h" #include "ecma-builtin-typedarray-helpers.h" #include "ecma-builtins.h" #include "ecma-comparison.h" +#include "ecma-conversion.h" #include "ecma-exceptions.h" +#include "ecma-function-object.h" +#include "ecma-gc.h" #include "ecma-globals.h" #include "ecma-helpers.h" -#include "ecma-objects.h" -#include "ecma-conversion.h" -#include "ecma-function-object.h" -#include "ecma-typedarray-object.h" -#include "ecma-arraybuffer-object.h" -#include "ecma-try-catch-macro.h" -#include "jrt.h" -#include "jrt-libc-includes.h" -#include "jcontext.h" -#include "ecma-gc.h" -#include "jmem.h" #include "ecma-iterator-object.h" -#include "math.h" +#include "ecma-objects.h" +#include "ecma-try-catch-macro.h" +#include "ecma-typedarray-object.h" +#include "jcontext.h" +#include "jmem.h" +#include "jrt-libc-includes.h" +#include "jrt.h" #if ENABLED (JERRY_ES2015_BUILTIN_TYPEDARRAY)