summaryrefslogtreecommitdiff
path: root/src/lib/elua
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-05-18 18:07:31 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-05-25 16:03:31 +0200
commitc0c5bc71c5960408ceac135eb8fc250683d55ffd (patch)
tree1185ee9504f1e25bbdcf619d2b095c5c2e3fe339 /src/lib/elua
parent4b5abd151c9308ad1063a84b70c4b16b3ce04839 (diff)
libs: headers: ensure we include headers in the correct order for EAPI
We need to ensure this order to make sure EAPI is working correctly on windows. Original patch by Vincent Torri. Differential Revision: https://phab.enlightenment.org/D11856 Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
Diffstat (limited to 'src/lib/elua')
-rw-r--r--src/lib/elua/Elua.h16
-rw-r--r--src/lib/elua/cache.c4
-rw-r--r--src/lib/elua/io.c4
3 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h
index 289f9112d7..cf93d65e53 100644
--- a/src/lib/elua/Elua.h
+++ b/src/lib/elua/Elua.h
@@ -18,6 +18,14 @@
18#ifndef _ELUA_H 18#ifndef _ELUA_H
19#define _ELUA_H 19#define _ELUA_H
20 20
21#ifdef EFL_BETA_API_SUPPORT
22
23#include <Eina.h>
24
25#include <lua.h>
26#include <lualib.h>
27#include <lauxlib.h>
28
21#ifdef EAPI 29#ifdef EAPI
22# undef EAPI 30# undef EAPI
23#endif 31#endif
@@ -92,14 +100,6 @@ extern "C" {
92 * @{ 100 * @{
93 */ 101 */
94 102
95#ifdef EFL_BETA_API_SUPPORT
96
97#include <Eina.h>
98
99#include <lua.h>
100#include <lualib.h>
101#include <lauxlib.h>
102
103/** Opaque Elua state 103/** Opaque Elua state
104 * 104 *
105 * @ingroup Elua 105 * @ingroup Elua
diff --git a/src/lib/elua/cache.c b/src/lib/elua/cache.c
index b18d690569..c731b0495a 100644
--- a/src/lib/elua/cache.c
+++ b/src/lib/elua/cache.c
@@ -1,10 +1,10 @@
1#include "elua_private.h"
2
3#include <sys/types.h> 1#include <sys/types.h>
4#include <sys/stat.h> 2#include <sys/stat.h>
5#include <fcntl.h> 3#include <fcntl.h>
6#include <unistd.h> 4#include <unistd.h>
7 5
6#include "elua_private.h"
7
8/* bytecode caching */ 8/* bytecode caching */
9 9
10static Eina_File * 10static Eina_File *
diff --git a/src/lib/elua/io.c b/src/lib/elua/io.c
index 77ac3df94c..142f61b716 100644
--- a/src/lib/elua/io.c
+++ b/src/lib/elua/io.c
@@ -1,9 +1,9 @@
1#include "elua_private.h"
2
3#ifdef _WIN32 1#ifdef _WIN32
4# include <evil_private.h> /* realpath */ 2# include <evil_private.h> /* realpath */
5#endif 3#endif
6 4
5#include "elua_private.h"
6
7/* expand fname to full path name (so that PATH is ignored) plus turn 7/* expand fname to full path name (so that PATH is ignored) plus turn
8 * stuff into a command, and also verify whether the path exists */ 8 * stuff into a command, and also verify whether the path exists */
9static char * 9static char *