mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Disable https connection for cross builds using mingw32
Not my preferred solution, but better than disabling divelogs.de uploads for people using the Windows binary. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8e18c860a9
commit
b047f17c13
1 changed files with 7 additions and 0 deletions
|
@ -366,7 +366,14 @@ int divelogde_upload(char *fn, char **error)
|
|||
SoupSession *session;
|
||||
SoupBuffer *sbuf;
|
||||
gboolean ret = FALSE;
|
||||
#ifdef __MINGW32__
|
||||
/* for odd reasons I can't seem to get https connections to work
|
||||
* with mingw32 when cross-building the Windows binaries... so fall
|
||||
* back to http for now */
|
||||
char url[256] = "http://divelogs.de/DivelogsDirectImport.php";
|
||||
#else
|
||||
char url[256] = "https://divelogs.de/DivelogsDirectImport.php";
|
||||
#endif
|
||||
const char *pass = NULL;
|
||||
const char *user = NULL;
|
||||
struct memblock mem;
|
||||
|
|
Loading…
Reference in a new issue