Fixing compilation portability
+ wscript: now code compiles with apple gcc, clang, and macport's gcc (though not working, but for unrelated reason)
+ adhoc: make it compilable with apple's gcc compiler and replace usage of the deprecated method
+ gui: adding necessary ifdef statement to not add menu item when Sparkle is not available
+ auto-update: with apple's gcc, Sparkle requires additional header include (AppKit)
Change-Id: Ie6137898c3a0ffad5f857bbd4c949c0efbbc89bc
diff --git a/gui/chronosharegui.cpp b/gui/chronosharegui.cpp
index 79d7a62..8a30b05 100644
--- a/gui/chronosharegui.cpp
+++ b/gui/chronosharegui.cpp
@@ -279,10 +279,17 @@
m_trayIconMenu->addSeparator();
m_trayIconMenu->addAction(m_viewSettings);
m_trayIconMenu->addAction(m_changeFolder);
+
+#ifdef SPARKLE_SUPPORTED
m_trayIconMenu->addSeparator();
m_trayIconMenu->addAction(m_checkForUpdates);
+#endif
+
+#ifdef ADHOC_SUPPORTED
m_trayIconMenu->addSeparator();
m_trayIconMenu->addAction(m_wifiAction);
+#endif
+
m_trayIconMenu->addSeparator();
m_trayIconMenu->addAction(m_quitProgram);