Skip to content

Commit e54666b

Browse files
Zsolt Borbélydbatyai
authored andcommitted
Fix the include format of math.h (#3197)
The order of includes are also fixed. JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]
1 parent b206d60 commit e54666b

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

jerry-core/ecma/builtin-objects/ecma-builtin-number.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* limitations under the License.
1414
*/
1515

16+
#include <math.h>
17+
1618
#include "ecma-alloc.h"
1719
#include "ecma-builtins.h"
1820
#include "ecma-conversion.h"
@@ -24,7 +26,6 @@
2426
#include "ecma-objects.h"
2527
#include "ecma-try-catch-macro.h"
2628
#include "jrt.h"
27-
#include "math.h"
2829

2930
#if ENABLED (JERRY_BUILTIN_NUMBER)
3031

jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,27 @@
1313
* limitations under the License.
1414
*/
1515

16+
#include <math.h>
17+
18+
#include "ecma-arraybuffer-object.h"
1619
#include "ecma-builtin-helpers.h"
1720
#include "ecma-builtin-typedarray-helpers.h"
1821
#include "ecma-builtins.h"
1922
#include "ecma-comparison.h"
23+
#include "ecma-conversion.h"
2024
#include "ecma-exceptions.h"
25+
#include "ecma-function-object.h"
26+
#include "ecma-gc.h"
2127
#include "ecma-globals.h"
2228
#include "ecma-helpers.h"
29+
#include "ecma-iterator-object.h"
2330
#include "ecma-objects.h"
24-
#include "ecma-conversion.h"
25-
#include "ecma-function-object.h"
26-
#include "ecma-typedarray-object.h"
27-
#include "ecma-arraybuffer-object.h"
2831
#include "ecma-try-catch-macro.h"
29-
#include "jrt.h"
30-
#include "jrt-libc-includes.h"
32+
#include "ecma-typedarray-object.h"
3133
#include "jcontext.h"
32-
#include "ecma-gc.h"
3334
#include "jmem.h"
34-
#include "ecma-iterator-object.h"
35-
#include "math.h"
35+
#include "jrt-libc-includes.h"
36+
#include "jrt.h"
3637

3738
#if ENABLED (JERRY_ES2015_BUILTIN_TYPEDARRAY)
3839

0 commit comments

Comments
 (0)