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: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62885
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
@ELEMENTARY_EMAP_CFLAGS@ \
@EIO_CFLAGS@
-if ELEMENTARY_WINDOWS_BUILD
-AM_CPPFLAGS += -DELEMENTARY_BUILD
-endif
-
noinst_PROGRAMS = \
widget_preview_button1 \
widget_preview_button2 \
# define __UNUSED__
#endif
-EAPI int
+EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv)
{
Evas_Object *win, *bg;
@ELEMENTARY_EMAP_CFLAGS@ \
@EIO_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
/* 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)
{
/* 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;
*
@code
#include <Elementary.h>
-EAPI int
+EAPI_MAIN int
elm_main(int argc, char **argv)
{
// create window(s) here and do any application init
elm_exit();
}
-EAPI int
+EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *win, *bg, *box, *lab, *btn;
# endif
#endif /* ! _WIN32 */
+#ifdef _WIN32
+# define EAPI_MAIN
+#else
+# define EAPI_MAIN EAPI
+#endif
/* allow usage from c++ */
#ifdef __cplusplus
* @code
* #include <Elementary.h>
* #ifndef ELM_LIB_QUICKLAUNCH
- * EAPI int
+ * EAPI_MAIN int
* elm_main(int argc, char **argv)
* {
* Ethumb_Client *client;