From 060e5c764cc66e54f422928e3921fd08dff31f69 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 3 May 2013 13:32:23 -0700 Subject: [PATCH] Matching build fixes for cross built Windows Signed-off-by: Dirk Hohndel --- linux.c | 2 ++ macos.c | 3 +++ packaging/windows/subsurface.res | Bin 18056 -> 0 bytes profile.c | 2 ++ windows.c | 7 +++++++ 5 files changed, 14 insertions(+) delete mode 100644 packaging/windows/subsurface.res diff --git a/linux.c b/linux.c index 51d1ce75d..33a846f9b 100644 --- a/linux.c +++ b/linux.c @@ -2,7 +2,9 @@ /* implements Linux specific functions */ #include "dive.h" #include "display.h" +#if USE_GTK_UI #include "display-gtk.h" +#endif #include #include diff --git a/macos.c b/macos.c index d28ea1dae..b43849f87 100644 --- a/macos.c +++ b/macos.c @@ -2,7 +2,10 @@ /* implements Mac OS X specific functions */ #include #include "dive.h" +#include "display.h" +#if USE_GTK_UI #include "display-gtk.h" +#endif /* USE_GTK_UI */ #include #include #include diff --git a/packaging/windows/subsurface.res b/packaging/windows/subsurface.res deleted file mode 100644 index 616cf5ea91f052151757396a3e7e37e11f47f931..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 18056 zcmeI4c~lff8o-ho_4mg6KM0BCkUp!@pcY=GCyw?Yx;Q_&%KVjOE9Eu9LgNQ(LnpFeyeby zkYXv`UJwF)j^Q#4pTh7Uh8UQovt#+pu@e8}ctJ2wV%$W%WK#~N-9AYA8kTw>JyFm# ziG!qX#dA*x^M$z>{vE~sE&S=pej^@WI2Diko*0NgHsm%bwi71e-te~S`kHr( zD@t?qd8hBFPwT%?ozDFBaTay9{+rA*IejJ7<=XQNHB>dMZnd?wzbq;@R>|X!!ii5l zf{4|#Ab80XII!RuIPm_&M_LXpcoqT|+4su}5VUv-gnBqh61IFAB>KBUN^As_RFxMt zG&KCoyb$pCSGh&`x03_b!a?UppLewWAhx7~GRQA6beNZcp{%4fd7t+q?c>ohTV8kY z{bwLCB!JZessmLG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;Foi$UxEWKfBRhrhX8PRmoF8f&(BmXH2u_&p72&6tj`+wH zKMXyQc))UNc9S7HFb6xq8LwH#t|0R5$V?Wm6V~H-0nbt??!WR6C77o-RL3kc@ v;g?|WEV0Uv!xOC-@XwP!xjEiIDsY=1h+k)!Ahfa=iZlPZj2*^~V;cVlkK~nA diff --git a/profile.c b/profile.c index bd395f127..f30ff1d06 100644 --- a/profile.c +++ b/profile.c @@ -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" diff --git a/windows.c b/windows.c index 94e3dc546..d6cb531ae 100644 --- a/windows.c +++ b/windows.c @@ -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 #include @@ -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 *);