From 0be8cc33501663d20c5b666453a2e6f49cbc18a6 Mon Sep 17 00:00:00 2001 From: caro Date: Tue, 22 Mar 2011 07:30:57 +0000 Subject: [PATCH] Edje: Fix epp binary detection on Windows git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@57961 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/edje_cc_parse.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bin/edje_cc_parse.c b/src/bin/edje_cc_parse.c index beb086d..19adf0a 100644 --- a/src/bin/edje_cc_parse.c +++ b/src/bin/edje_cc_parse.c @@ -34,6 +34,12 @@ void *alloca (size_t); #include #include +#ifdef _WIN32 +# define EPP_EXT ".exe" +#else +# define EPP_EXT +#endif + static void new_object(void); static void new_statement(void); static char *perform_math (char *input); @@ -694,7 +700,7 @@ compile(void) * Run the input through the C pre-processor. */ ret = -1; - snprintf(buf2, sizeof(buf2), "%s/edje/utils/epp", e_prefix_lib_get()); + snprintf(buf2, sizeof(buf2), "%s/edje/utils/epp"EPP_EXT, e_prefix_lib_get()); if (ecore_file_exists(buf2)) { snprintf(buf, sizeof(buf), "%s %s -I%s %s -o %s", -- 2.7.4