summaryrefslogtreecommitdiff
path: root/src/lib/elm_general.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elm_general.h')
-rw-r--r--src/lib/elm_general.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_general.h b/src/lib/elm_general.h
index 2af9d9ffa..03adee736 100644
--- a/src/lib/elm_general.h
+++ b/src/lib/elm_general.h
@@ -141,13 +141,13 @@ typedef Eina_Bool (*Elm_Event_Cb)(void *data, Evas_Object *obj, Evas
141extern EAPI double _elm_startup_time; 141extern EAPI double _elm_startup_time;
142 142
143#ifndef ELM_LIB_QUICKLAUNCH 143#ifndef ELM_LIB_QUICKLAUNCH
144#define ELM_MAIN() int main(int argc, char **argv) { int ret; _elm_startup_time = ecore_time_unix_get(); elm_init(argc, argv); ret = elm_main(argc, argv); return ret; } /**< macro to be used after the elm_main() function */ 144#define ELM_MAIN() int main(int argc, char **argv) { int ret; _elm_startup_time = ecore_time_get(); elm_init(argc, argv); ret = elm_main(argc, argv); elm_shutdown(); return ret; } /**< macro to be used after the elm_main() function */
145#else 145#else
146/** @deprecated macro to be used after the elm_main() function. 146/** @deprecated macro to be used after the elm_main() function.
147 * Do not define ELM_LIB_QUICKLAUNCH 147 * Do not define ELM_LIB_QUICKLAUNCH
148 * Compile your programs with -fpie and -pie -rdynamic instead, to generate a single binary (linkable executable). 148 * Compile your programs with -fpie and -pie -rdynamic instead, to generate a single binary (linkable executable).
149 */ 149 */
150#define ELM_MAIN() int main(int argc, char **argv) { _elm_startup_time = ecore_time_unix_get(); return elm_quicklaunch_fallback(argc, argv); } 150#define ELM_MAIN() int main(int argc, char **argv) { int ret; _elm_startup_time = ecore_time_get(); ret = elm_quicklaunch_fallback(argc, argv); elm_shutdown(); return ret; }
151#endif 151#endif
152 152
153/**************************************************************************/ 153/**************************************************************************/