summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-06-18 13:22:05 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-06-18 13:22:05 +0100
commitfa8549c20c328b9e92b674f7494d40980c958ead (patch)
tree3c568f396c88b0c4f5b00fe57e9cad105af15b85 /src
parentac61b77e3e5c59c35c8db62fb4cfe774dfd46d63 (diff)
define HAVE_REALPATH in evil_stdlib.h
Summary: instead of relying on build system, define HAVE_REALPATH in Evil header file Reviewers: zmike, raster, cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9107
Diffstat (limited to 'src')
-rw-r--r--src/bin/edje/edje_cc.c4
-rw-r--r--src/bin/elementary/elm_prefs_cc.c4
-rw-r--r--src/lib/evil/evil_stdlib.h3
3 files changed, 11 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc.c b/src/bin/edje/edje_cc.c
index 1551032bc3..1963dae341 100644
--- a/src/bin/edje/edje_cc.c
+++ b/src/bin/edje/edje_cc.c
@@ -12,6 +12,10 @@
12# include <sys/resource.h> 12# include <sys/resource.h>
13#endif 13#endif
14 14
15#ifdef _WIN32
16# include <evil_private.h> /* realpath */
17#endif
18
15#include "edje_cc.h" 19#include "edje_cc.h"
16int _edje_cc_log_dom = -1; 20int _edje_cc_log_dom = -1;
17static void main_help(void); 21static void main_help(void);
diff --git a/src/bin/elementary/elm_prefs_cc.c b/src/bin/elementary/elm_prefs_cc.c
index 9f5da87bf9..786330ad60 100644
--- a/src/bin/elementary/elm_prefs_cc.c
+++ b/src/bin/elementary/elm_prefs_cc.c
@@ -7,6 +7,10 @@
7#include <limits.h> 7#include <limits.h>
8#include <sys/stat.h> 8#include <sys/stat.h>
9 9
10#ifdef _WIN32
11# include <evil_private.h> /* realpath */
12#endif
13
10#include "elm_prefs_cc.h" 14#include "elm_prefs_cc.h"
11 15
12int _elm_prefs_cc_log_dom = -1; 16int _elm_prefs_cc_log_dom = -1;
diff --git a/src/lib/evil/evil_stdlib.h b/src/lib/evil/evil_stdlib.h
index 34c9f7c65f..a5645b7585 100644
--- a/src/lib/evil/evil_stdlib.h
+++ b/src/lib/evil/evil_stdlib.h
@@ -115,6 +115,9 @@ EAPI int mkstemps(char *__template, int suffixlen);
115 * Supported OS: Windows XP. 115 * Supported OS: Windows XP.
116 */ 116 */
117EAPI char *realpath(const char *file_name, char *resolved_name); 117EAPI char *realpath(const char *file_name, char *resolved_name);
118#ifndef HAVE_REALPATH
119#define HAVE_REALPATH 1
120#endif
118 121
119 122
120/** 123/**