From: caro Date: Tue, 22 Mar 2011 07:30:57 +0000 (+0000) Subject: Edje: Fix epp binary detection on Windows X-Git-Tag: 2.0_alpha~163^2~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c30703a6af95f51e9eb7ad2f3b8506187b7180ba;p=framework%2Fuifw%2Fedje.git Edje: Fix epp binary detection on Windows git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@57961 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- 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",