//////////////
-#elif defined(__UNIX__)
+#elif defined(__UNIX__) || defined(__GNU_WINDOWS__)
//! options that should work for most unix and linux apps.
#define HOOPLE_MAIN(obj_name, obj_args) \
HOOPLE_STARTUP_CODE; \
//////////////
-#elif defined(__WIN32__)
+#elif defined(_MSC_VER)
// for win32 we need to support four different environments--console mode,
// borland compilation, MFC programs and regular windows programs.
#ifdef _CONSOLE
#define HOOPLE_MAIN(obj_name, obj_args) \
HOOPLE_STARTUP_CODE; \
int main(int argc, char *argv[]) { \
- SETUP_COMBO_LOGGER; \
SET_ARGC_ARGV(argc, argv); \
+ SETUP_COMBO_LOGGER; \
obj_name to_run_obj obj_args; \
return to_run_obj.execute_application(); \
}