checking in the recent efforts at optimizing clam
[feisty_meow.git] / nucleus / library / application / hoople_main.h
index aac5a74e42ad99ad21d6ea208286472f96efc28a..b920341c471203a1f260ea8b46985359c732fb33 100644 (file)
@@ -56,7 +56,7 @@ namespace application {
 
 //////////////
 
-#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; \
@@ -69,7 +69,9 @@ namespace application {
 
 //////////////
 
-#elif defined(__WIN32__)
+/*
+ * deprecated.
+#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
@@ -77,8 +79,8 @@ namespace application {
     #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(); \
       }
@@ -102,6 +104,7 @@ namespace application {
         return to_run_obj.execute_application(); \
       }
   #endif
+*/
 
 //////////////