diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-03 13:32:23 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-03 13:34:55 -0700 |
commit | 060e5c764cc66e54f422928e3921fd08dff31f69 (patch) | |
tree | 6b3ffcca0ff956fae7b42455577feb1b0fa244fa | |
parent | aa3838308b22dd3940e6b18cb23224356544da92 (diff) | |
download | subsurface-060e5c764cc66e54f422928e3921fd08dff31f69.tar.gz |
Matching build fixes for cross built Windows
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | linux.c | 2 | ||||
-rw-r--r-- | macos.c | 3 | ||||
-rw-r--r-- | packaging/windows/subsurface.res | bin | 18056 -> 0 bytes | |||
-rw-r--r-- | profile.c | 2 | ||||
-rw-r--r-- | windows.c | 7 |
5 files changed, 14 insertions, 0 deletions
@@ -2,7 +2,9 @@ /* implements Linux specific functions */ #include "dive.h" #include "display.h" +#if USE_GTK_UI #include "display-gtk.h" +#endif #include <gconf/gconf-client.h> #include <string.h> @@ -2,7 +2,10 @@ /* implements Mac OS X specific functions */ #include <stdlib.h> #include "dive.h" +#include "display.h" +#if USE_GTK_UI #include "display-gtk.h" +#endif /* USE_GTK_UI */ #include <CoreFoundation/CoreFoundation.h> #include <CoreServices/CoreServices.h> #include <mach-o/dyld.h> diff --git a/packaging/windows/subsurface.res b/packaging/windows/subsurface.res Binary files differdeleted file mode 100644 index 616cf5ea9..000000000 --- a/packaging/windows/subsurface.res +++ /dev/null @@ -6,7 +6,9 @@ #include "dive.h" #include "display.h" +#if USE_GTK_UI #include "display-gtk.h" +#endif #include "divelist.h" #include "color.h" #include "libdivecomputer/parser.h" @@ -1,7 +1,10 @@ /* windows.c */ /* implements Windows specific functions */ #include "dive.h" +#include "display.h" +#if USE_GTK_UI #include "display-gtk.h" +#endif #include <windows.h> #include <shlobj.h> @@ -128,6 +131,7 @@ void subsurface_close_conf(void) RegCloseKey(hkey); } +#if USE_GTK_UI int subsurface_fill_device_list(GtkListStore *store) { const int bufdef = 512; @@ -194,6 +198,7 @@ int subsurface_fill_device_list(GtkListStore *store) } return index; } +#endif /* USE_GTK_UI */ const char *subsurface_icon_name() { @@ -231,11 +236,13 @@ const char *subsurface_gettext_domainpath(char *argv0) return "./share/locale"; } +#if USE_GTK_UI void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar, GtkWidget *vbox, GtkUIManager *ui_manager) { gtk_box_pack_start(GTK_BOX(vbox), menubar, FALSE, FALSE, 0); } +#endif /* USE_GTK_UI */ /* barely documented API */ extern int __wgetmainargs(int *, wchar_t ***, wchar_t ***, int, int *); |