change the way elm_main() must be declared (fix bug on Windows).
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 27 Aug 2011 07:54:49 +0000 (07:54 +0000)
committerMike McCormack <mj.mccormack@samsung.com>
Thu, 10 Nov 2011 06:07:10 +0000 (15:07 +0900)
Instead of EAPI elm_main(***), it must be EAPI_MAIN elm_main(***) so that
it also work on Windows.

If someone knows sed a bit, can he also change all the examples ?

git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@62885 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/Makefile.am
src/bin/config.c
src/bin/test.c

index f8fa1ee..8cf31cd 100644 (file)
@@ -22,10 +22,6 @@ AM_CPPFLAGS = \
 @EIO_CFLAGS@ \
 @ELEMENTARY_WEB_CFLAGS@
 
-if ELEMENTARY_WINDOWS_BUILD
-AM_CPPFLAGS += -DELEMENTARY_BUILD
-endif
-
 bin_PROGRAMS = @ELEMENTARY_TEST_PRG@ @ELEMENTARY_CONFIG_PRG@
 if BUILD_QUICKLAUNCH
 bin_PROGRAMS += elementary_quicklaunch elementary_run elementary_testql
index e5275db..1955d00 100644 (file)
@@ -2999,7 +2999,7 @@ _exit_timer(void *data __UNUSED__)
 /* this is your elementary main function - it MUST be called IMMEDIATELY
  * after elm_init() and MUST be passed argc and argv, and MUST be called
  * elm_main and not be static - must be a visible symbol with EAPI infront */
-EAPI int
+EAPI_MAIN int
 elm_main(int    argc,
          char **argv)
 {
index fe191e6..a785c20 100644 (file)
@@ -461,7 +461,7 @@ my_win_main(char *autorun, Eina_Bool test_win_only)
 /* this is your elementary main function - it MUST be called IMMEDIATELY
  * after elm_init() and MUST be passed argc and argv, and MUST be called
  * elm_main and not be static - must be a visible symbol with EAPI infront */
-EAPI int
+EAPI_MAIN int
 elm_main(int argc, char **argv)
 {
    Eina_Bool test_win_only = EINA_FALSE;